Hello. I've been working on my first Struts2 application over the last couple of weeks and have been quite happy with it. I do have a question about the httpheader result that I hope somebody can help me out with.

The documentation for the httpheader result mentions the param named header.a to set a HTTP header named a with the value given in the param element. My first attempt was to create a X-MyMessage header to contain a bit of information for the integration team on the other side. This didn't work. I also tried other cases with mixed results.

Works:
<param name="headers.a">My Message</param>
<param name="headers.B">My Message</param>

Mixed results (all set in same response):
<param name="headers.ab">My Message</param>
<param name="headers.AB">My Message</param>
<param name="headers.aB">My Message</param>

Doesn't work:
<param name="headers.X-MyMessage">My Message</param>
<param name="headers.a.b">My Message</param>

I tried with parse set to true and false and it didn't seem to make any difference. I believe the parsing is for the text of the header messages, not the header names. Is this not working correctly or am I missing something?

Best regards,

Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to