This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes stopping JSP execution temporarily through code ....please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "stopping JSP execution temporarily through code ....please help" Watch "stopping JSP execution temporarily through code ....please help" New topic
Author

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

santosh vashist
Greenhorn

Joined: May 14, 2001
Posts: 25
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

Joined: May 29, 2001
Posts: 62
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.


programmer77
tony lu
Greenhorn

Joined: Dec 19, 2000
Posts: 15
111
Jack Wiesenthaler
Ranch Hand

Joined: Jul 26, 2001
Posts: 75
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;
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: stopping JSP execution temporarily through code ....please help
 
Similar Threads
A jsp:forward... tag problem
how do I pass data from one JSP to another
How To Stop the execution of the Action Class
How to show the actual Exception occured during JSP Excution in Error Pages using JSP
WTE debug option