struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A Amarakoon <ani...@shaw.ca>
Subject Re: response.addHeader problem
Date Thu, 30 Mar 2006 15:54:45 GMT

By the way my struts.config looks like this.

	<action path  = /login"
              type  = "my.actionClass"
              name  = "LoginForm"
              scope = "request" validate="false">
<forward name = "destUrl" path = "http://localhost:8080/HeadSimulator/checker.do" redirect="true"
contextRelative="false" />


----- Original Message -----
From: A Amarakoon <anil_A@shaw.ca>
Date: Thursday, March 30, 2006 9:14 am
Subject: response.addHeader problem

> 
> Struts 1.2.7 on windows.
> I am trying add cutom http header within action. The I do redirect 
> to a another web app. Problem I have is that web app does not see 
> the headers I added. 
> 
> Am I missing something?
> 
> my action class:
>        response.addHeader("header1","myFirstHeader");
>        response.addHeader("header2","mySecondHeader");
> 
>       ActionForward toAction= new ActionForward ();
>       ActionForward fromAction = mapping.findForward("destUrl");
>       fromAction.setPath(fromAction.getPath());                
>       toAction.setRedirect(true);        
>       return toAction;
> 
> 
> thanks
> 
> rukka
> 
> 
> 
> -------------------------------------------------------------------
> --
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message