|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Apr 2008
Messaggi: 49
|
Come accedere a variabili session dal client
Ciao a tutti, ho un problema. Il client della mia applicazione web dovrebbe accedere ad una variabile session del server
server: public class FileUploadServlet extends HttpServlet { . private String destinationDirectory; protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { . HttpSession session = req.getSession(true); session.setAttribute("directory", destinationDirectory); . } } come faccio dal client a farmi restituire il valore che passo nella variabile di session? Grazie a tutti in anticipo.
__________________
Ali ColorSit 550W Silent - Cpu E4500 - Dissipatore Thermaltake V1 - Mainboard Asus P5Q Deluxe P45 - HDD 2X Raptor 74 Gb in Raid 0 - Ram Corsair Dominator 2x2 Gb 1066 MHz CL5 - Video Gainward 4850 512 Mb Golden Sample - Monitor Samsung 226 CW 22" 1680x1050 2ms - Linksys wag320n |
|
|
|
|
|
#2 |
|
Member
Iscritto dal: Apr 2008
Messaggi: 49
|
Nessuno può aiutarmi? Il tutto è scritto in GWT e Java.
__________________
Ali ColorSit 550W Silent - Cpu E4500 - Dissipatore Thermaltake V1 - Mainboard Asus P5Q Deluxe P45 - HDD 2X Raptor 74 Gb in Raid 0 - Ram Corsair Dominator 2x2 Gb 1066 MHz CL5 - Video Gainward 4850 512 Mb Golden Sample - Monitor Samsung 226 CW 22" 1680x1050 2ms - Linksys wag320n |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 09:00.


















