Stoping JSP Execution in the Middle of a JSP Page

Q

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

✍: FYICENTER.com

A

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.

2007-04-03, 5207👍, 0💬