Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stopping JSP execution temporarily through code ....please help

 
santosh vashist
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai all,
I am working with JSP on J2EE.I want to stop execution of JSP at some mid point of my code, for some validation or check some intermediate value of a variable. Like how we have response.end in ASP. Can some body help me in this regard please with code .
waiting for reply ...
thanks in advance,
santosh
 
Shuaib Gill
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just try and comment out some code from the JSP, save it, and hit reload from the browser.
Make your checks, uncomment the code, comment some more code, and save. Hit reload from the browser.
Hope this helps.
 
tony lu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
111
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java content of the JSP corresponds to the HTTP servlet's request handler i.e. doPost() or doGet(), so the equivalent of Response.End in ASP is just return;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic