PDA

View Full Version : How to call javascript variable in jsp?


pashah72
08-12-2005, 05:25 PM
Hello

I have a javascript variable abc, assigned value='xyz' (for e.g. var abc='xyz'). How to call in jsp?

Thanks

nikkiH
08-12-2005, 06:28 PM
Javascript runs on the client, after jsp code is done executing and sends the response out.
You'd need the browser to send another request to the server, either via a form submit, dynamic script src, or xmlhttprequest or such.