You have to send it's value to the server (where the JSP kode gets executed)
either by appending it to a URL or inserting it in a hidden form field. This
implies that a request has to be done by the client to the server, or the
JSP page won't be executed nor the data transfered.

More advanced datastructures can be transfered between Javascript and server
pages with XML, like with WDDX (www.wddx.org). There is no magic to this
thou (that darn XML hipe ;-)), it just encodes/decodes the data to/from a
string, it has to be transfered as described above.

/Antonio

----- Original Message -----
From: w yen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 04, 2000 6:17 PM
Subject: javascript and jsp


> i created a variable in javascript and want my jsp
> code to recognize it, suggestion?
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to