Friday, March 13, 2009

Can I stop JSP execution while in the midst of processing a request (JSP)

Question :Can I stop JSP execution while in the midst of processing a request? (JSP)
Answer :Yes. Preemptive termination of request processing on an error condition
is a good way to maximize the throughput of a high-volume JSP engine.
The trick (asuming Java is your scripting language) is to use the return
statement when you want to terminate further processing. For example,
consider:

No comments: