struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: couldn't access s:include param using #parameters
Date Wed, 27 Aug 2008 01:57:11 GMT
Parameters are passed as request parameters, so use the
${param.ParamName} notation to access them.

musachy

On Tue, Aug 26, 2008 at 9:51 PM, Martin Gainty <mgainty@hotmail.com> wrote:
>
> in your struts-default.xml or xwork-default.xml
> can you verify you have implemented ParametersInterceptor
> <interceptor name="params" class="com.opensymphony.xwork2.interceptor.ParametersInterceptor"/>
>  in your <default> stack
>
> ?
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission.
>
>
>> Date: Tue, 26 Aug 2008 18:10:14 -0700
>> From: pandamouse@hotmail.com
>> To: user@struts.apache.org
>> Subject: couldn't access s:include param using #parameters
>>
>>
>> Okay I have made 2 small jsp. I can't access parameters passed in from
>> s:include (struts 2.0.11.2) by #parameters.<parametername> OR
>> #parameters['<parametername>']. Am I doing something really wrong?
>>
>> quicktest.jsp:
>> <%@ taglib prefix="s" uri="/struts-tags" %>
>>
>> <s:include value="quicktestincluded.jsp">
>>      <s:param name="defaultValue">0</s:param>
>> </s:include>
>>
>> quicktestincluded.jsp:
>> <%@ taglib prefix="s" uri="/struts-tags" %>
>>
>> parameter with $ { } : ${param.defaultValue} <br>
>> parameter with s:property: <s:property value="#parameters.defaultValue"/>
>>
>> Now if I access quicktest.do. It give me the following:
>> parameter with $ { } : 0
>> parameter with s:property:
>>
>> And if I access quicktestincluded.do like this
>> 'quicktestincluded.do?defaultValue=0' it would give me:
>> parameter with $ { } : 0
>> parameter with s:property: 0
>>
>> --
>> View this message in context: http://www.nabble.com/couldn%27t-access-s%3Ainclude-param-using--parameters-tp19173169p19173169.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> _________________________________________________________________
> Be the filmmaker you always wanted to beā€”learn how to burn a DVD with Windows(R).
> http://clk.atdmt.com/MRT/go/108588797/direct/01/



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message