Hi,
I am using Struts/Tomcat 4., and I'm experiencing a problem forwarding after the
session times out. The session is set to timeout in web.xml. After this happens, my
mapping.findForward does not find the resource defined in my struts-config.xml. It
seems to do nothing. What implication
Hello!
I wrote an action for downloading a file.
It is necessary to access the response variable (see code below).
I found out, that this manipulation of "response" makes trouble.
Normally after the action is processed a forward will happen. In my case
I want to forward to another page. But I
On Thu, 2003-03-27 at 22:38, Craig R. McClanahan wrote:
> There is a fundamental rule in the servlet API that things included with a
> RequestDispatcher.include() call (which is what does under
> the covers) cannot modify the HTTP headers of the response. Since you
> need to modify those headers
On Thu, 27 Mar 2003, Becky Norum wrote:
> Date: 27 Mar 2003 20:24:51 -0500
> From: Becky Norum <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: java.lang.IllegalSta
; - Original Message -
> > From: "Becky Norum" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, March 28, 2003 1:47 AM
> > Subject: java.lang.IllegalStateException: Cannot forward after response
> > hasbeen committed
> >
Original Message -
> From: "Becky Norum" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 28, 2003 1:47 AM
> Subject: java.lang.IllegalStateException: Cannot forward after response
> hasbeen committed
>
>
> >
>
what's your scope definition ? (in the struts-conf)
--
Alexandre Jaquet
- Original Message -
From: "Becky Norum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 1:47 AM
Subject: java.lang.IllegalStateException: Cannot forward after
, 2003-03-28 at 11:17, Becky Norum wrote:
> Does anyone know what the following exception means?
>
> javax.servlet.jsp.JspException: java.lang.IllegalStateException: Cannot
> forward after response has been committed
>
> It seemed to be related to something in
make sure you are not writing anything to the response stream before you
forward..
-Original Message-
From: Becky Norum [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 4:48 PM
To: [EMAIL PROTECTED]
Subject: java.lang.IllegalStateException: Cannot forward after response
has
Does anyone know what the following exception means?
javax.servlet.jsp.JspException: java.lang.IllegalStateException: Cannot
forward after response has been committed
It seemed to be related to something in this area of code:
// ModuleConfig config = (ModuleConfig
2002 20:29
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Forward after
I don't disagree with this approach.
One of the problems with using a tag in the jsp is that the
check is postponed until you're actually in the jsp. The action servlet is
a better place to han
rity option I get functionality. If I specify a
logger, I change my logging options.
Sorry for the cross post to the dev list - I seemed to cross the boundary between
responding to the question and dreaming about the future!
FWIW -
Kevin
Struts Newsgroup (@Basebeans.com)
To: [EMAIL PROT
Subject: Re: Forward after
From: "Dave Barber" <[EMAIL PROTECTED]>
===
One thing we've done is to have our *Actions* all extend a base Action class
(ie. SecuredAction).
SecureAction extends Action {
public ActionForward perform( ServletRequest, etc...) {
EMAIL PROTECTED]]
Sent: Wednesday, 24 April 2002 2:13 AM
To: [EMAIL PROTECTED]
Subject: Forward after
I have some pages which require a user to be logged in
and some which do not. If the tag
determines that there is no user logged in, the user
is forwarded to the login page. I'd like t
current page in the
> > session.
> >
> > - Robert
> >
> > -Original Message-
> > From: Andy Timm [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 23, 2002 11:13 AM
> > To: [EMAIL PROTECTED]
> > Subject: Forward after
> >
Yes it can be messy :-)
-Original Message-
From: Andy Timm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:31 PM
To: Struts Users Mailing List
Subject: RE: Forward after
Robert - I'm doing this now, I was hoping do find a
better way to deal with parameters. I can fo
IL PROTECTED]]
> Sent: Tuesday, April 23, 2002 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: Forward after
>
> I have some pages which require a user to be logged
> in
> and some which do not. If the tag
> determines that there is no user logged in, the user
> is forwarde
d forwarded upon login.
You should have all the source code for the tag - making
these changes should be about as easy as any other solution.
Andy Timm <[EMAIL PROTECTED]> on 04/23/2002 12:13:03 PM
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
. You could probably also supply the current page in the
session.
- Robert
-Original Message-
From: Andy Timm [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:13 AM
To: [EMAIL PROTECTED]
Subject: Forward after
I have some pages which require a user to be logged in
and some which
I have some pages which require a user to be logged in
and some which do not. If the tag
determines that there is no user logged in, the user
is forwarded to the login page. I'd like to remember
where the user came from and forward them there after
a successful authentication. I'm sure there a
20 matches
Mail list logo