javascript variable in jsp session

Reply

Join Date: Jul 2005
Posts: 11
Reputation: muktidaniweb is an unknown quantity at this point 
Solved Threads: 0
muktidaniweb muktidaniweb is offline Offline
Newbie Poster

javascript variable in jsp session

 
0
  #1
Aug 26th, 2005
How can I store a javascript variable in jsp session
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 216
Reputation: hooknc is an unknown quantity at this point 
Solved Threads: 8
hooknc hooknc is offline Offline
Posting Whiz in Training

Re: javascript variable in jsp session

 
0
  #2
Aug 26th, 2005
That variable needs to be passed to a servlet or jsp through a request to the server and then the servlet or jsp can place that variable into the session.

Regards,

Nate
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 2
Reputation: tirupati_dand is an unknown quantity at this point 
Solved Threads: 1
tirupati_dand tirupati_dand is offline Offline
Newbie Poster

Re: javascript variable in jsp session

 
0
  #3
Sep 27th, 2005
Originally Posted by hooknc
That variable needs to be passed to a servlet or jsp through a request to the server and then the servlet or jsp can place that variable into the session.

Regards,

Nate
how to pass the javascript variable in servlet or java code directly.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 216
Reputation: hooknc is an unknown quantity at this point 
Solved Threads: 8
hooknc hooknc is offline Offline
Posting Whiz in Training

Re: javascript variable in jsp session

 
0
  #4
Oct 3rd, 2005
You can't.

The variable has to be passed as part of a request.

JavaScript is client side. JSP and Servlet are server side.

Now, you can change variables in your JavaScript with JSP or Servlets, but you can't change a variable in JSP or Servlets with JavaScript.

Regards,

Nate
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC