Stoping JSP Execution in the Middle of a JSP Page


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.

2007-04-03, 5198👍, 0💬