• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Script not working before Jsp:forward tag

 
ssasi kumar
Greenhorn
Posts: 26
Chrome Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic