You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by A Amarakoon <an...@shaw.ca> on 2006/03/30 17:14:47 UTC

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("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