how to call a part of jsp after a javascript function has been invoked
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, April 8, 2010 06:12 AM

i have a jsp page with javascript functions.
i need a part of the jsp code to be executed after a particular function call is made on button click...what should i do....urgent

Re: how to call a part of jsp after a javascript function has been invoked

Posted By:   Tim_Frith  
Posted On:   Tuesday, April 13, 2010 03:07 PM

By the time your javascript executes (on the browser) there is no longer any jsp code. Load the page in your browser and view the source - no jsp to be found. It has been parsed and executed on the server before the page was served.


So your question kind of doesn't make much sense.


You would probably need to have the javascript load a new page or make an ajax call back to the server to execute server-side code.

About | Sitemap | Contact