Meaningless Drivel is fun!*
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
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: 60782
    
  65

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]
 
jQuery in Action, 2nd edition
 
subject: Java Script not working before Jsp:forward tag
 
Similar Threads
Mockexam question doubt?
automatic forward?
Java IO Exception in JSP
errors on javaranch scwcd hints page?
jsp:param