aspose 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
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 21


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: 56157
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Java Script not working before Jsp:forward tag
 
Similar Threads
errors on javaranch scwcd hints page?
automatic forward?
Java IO Exception in JSP
jsp:param
Mockexam question doubt?