DEVFYI - Developer Resource - FYI

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

JSP Interview Questions and Answers


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions