File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 61198
    
  66

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]
 
 
subject: Java Script not working before Jsp:forward tag