File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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;
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stopping JSP execution temporarily through code ....please help