struts-user mailing list archives

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

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("targetUrl");
       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


Mime
View raw message