dcsimg

How can I stop JSP script processing using some command in this script?
out.close() causes no other output to browser, but the other Java code in scriptlets continues.

Govind Seshadri


Answer by Ramakrishnan Venkataraman
You can have something like:

     out.flush(); out.close();
     completed = true;
     
     if (completed)
        return;
     else
     {
        System.out.println ("Test2"); 
        // other stuff 
     }