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

Q

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

✍: Guest

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.

2013-07-29, 2149👍, 0💬