Andrew-
can intercept your ActionServlet's doGet or doPost method before process method is invoked If you want simple follow the instructions for supplying web.xml location attribute for login jsp page
HTH,
----- Original Message ----- From: "Andrew Thorell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, May 26, 2005 11:41 AM
Subject: Re: Creating a standard page to handle Error 500


Where does one find this to modify the doGet method? I've yet to deal
with actually modifiying the actual servlet...

Andrew

On 5/26/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
Inside the StrutsServlet's doGet method

RequestDispatcher dispatcher = null;

request.getRequestDispatcher(/err/SQL.jsp);

try {

 //  operation which causes 500
}
catch (Exception se) {
//forwards to a login.jsp
 dispatcher.forward(request, response);
}

check out http://java.sun.com/j2ee/1.4/docs/api/index.html
Regards,
Martin-

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to