This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes JSP and the fly likes Java Script not working before Jsp:forward tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Java Script not working before Jsp:forward tag" Watch "Java Script not working before Jsp:forward tag" New topic
Author

Java Script not working before Jsp:forward tag

ssasi kumar
Greenhorn

Joined: Feb 23, 2011
Posts: 26


Hi everyone
in jsp page i putting javascript alert method before jsp:forward tag.its not called while calling jsp page.what is the reason can anyone explain this question


thanks and regards
sasikumar
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63060
    
  69

Because JSP is executed on the server and JavaScript isn't executed until after the HTML page has been sent to the client.

Please read this article to understand how JSP operated.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Java Script not working before Jsp:forward tag
 
jQuery in Action, 3rd edition