struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Struts2: httpheader result does not sent headers with hyphenated names
Date Wed, 12 Jan 2011 17:30:28 GMT
I wonder if that's an OGNL thing.

Dave

On Wed, Jan 12, 2011 at 12:24 PM, JOSE L MARTINEZ-AVIAL <jlmagc@gmail.com>wrote:

> Hi all,
>
>    I'm using Struts .2.1.8.1, and I've found a problem when I use  result
> type httpheader and I try to use a header name with a hyphen. They don't
> get
> sent. For example, the following result definition:
>
> <result name="mvc.security.authentication.ntlm.solicited"
> type="httpheader">
>
>    <param name="status">401</param>
>
>    <param name="headers.WWW-Authenticate">NTLM</param>
>
>    <param name="headers.a">my header</param>
>
>    <param name="headers.WWWAuthenticate">NTLM</param>
>
> </result>
>
>    I receive the headers "a" and "WWWAuthenticate", but no the header
> "WWW-Authenticate". Is there any way to fix this behaviour?
>
>
>
>    Thanks.
>
>
>
> Jose
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message