JSP - Javascript
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, April 5, 2001 02:25 AM

How can I use a Javascript variable in the Java code of a Java Server Page?
Is it possible?

Re: JSP - Javascript

Posted By:   AlessandroA_Garbagnati  
Posted On:   Thursday, April 5, 2001 08:54 AM

Jose,

No, you can't. The java code inside a Jsp page is executed on the server side, before the page is sent to the client, while the javascript code is executed on the client. When the page reaches the client, the java code is not present on the page anymore.
About | Sitemap | Contact