Hey all
I recently added the following to my JSP pages to force them not to be
cached:
% response.setHeader(Pragma,no-cache);%
% response.setHeader(Cache-Control,no-store);%
% response.setDateHeader(Expires,-1);%
the result is that if the user hits back then reload they get an error
500.
Web.xml
error-page
error-code 500 /error-code
location /where/you/want/to/go /location
/error-page
you can do redirections inside your location page, or however you want
to set it up, point it at an action or whatever.
Andrew T
On 5/26/05, David Johnson [EMAIL PROTECTED] wrote:
Hey all
Perhaps the community can answer that question for you. I use the
error-page 500 as a catch all for undefined / unexpected errors. I'm
sure there's a way to do it, I just haven't done it before and can't
tell you off the top of my head. You can probably point the Error at
an action which can point
,mime-mapping*,welcome-file-list?,error-page*,taglib*,reso
That error is tell you that you placed the error-page tag in the wrong
section. The error tells you the correct order you need to put all the
tags in.
Andrew
-
To
/docs/api/index.html
Regards,
Martin-
- Original Message -
From: David Johnson [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, May 26, 2005 10:55 AM
Subject: Creating a standard page to handle Error 500
Hey all
I recently added the following to my JSP
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;
I'd like to avoid modifying the struts code if I can
On 5/26/05, Andrew Thorell [EMAIL PROTECTED] wrote:
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:
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
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
; Martin Gainty
[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 5:32 PM
Subject: Re: Creating a standard page to handle Error 500
also... I have a BaseAction all my actions are inherited from might I do
whatever you recommend I do... there? :D
On 5/26/05, David Johnson [EMAIL PROTECTED] wrote
10 matches
Mail list logo