Veronica Iturrioz wrote:
 Hi,
Had anyone work with <result type="httpheader">?
How does the params "headers" work? I try different options but it seems to not produce any change

<param name="headers.a ">xxx</param>

What did you try, and what were the results? Note the documentation for the 'parse' parameter [1], which says "parse - true by default. If set to false, the headers param will not be parsed for Ognl expressions." In your example above, you don't set the 'parse' parameter to false, so Struts is going to try and evaluate 'xxx' as an OGNL expression.

One of these ought to work (untested):

    <param name="parse">false</param>
    <param name="x.my.header.1">xxx</header>

or

    <param name="x.my.header.1">'xxx'</header>

The example in the documentation could probably be improved to make this a little more clear up front...

L.


[1] http://struts.apache.org/2.x/docs/httpheader-result.html


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

Reply via email to