You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mteccles <ma...@googlemail.com> on 2008/02/27 09:45:50 UTC

using param tag inside custom tag

Hi,

Where and how do struts  2 param tags get evaluated and injected into the
parent tag? When my custom tag is being invoked, the
Component.getParameters() method is returning empty list. Is there some
configuration required to make this work?

<cp:text name="*****" ><s:param name='user.name' value='test un' /><s:param
name='user.age' value='test age' /><s:param name='user.cameFrom' value='test
came' /></cp:text>
-- 
View this message in context: http://www.nabble.com/using-param-tag-inside-custom-tag-tp15708693p15708693.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


Re: using param tag inside custom tag

Posted by mteccles <ma...@googlemail.com>.
Hmm found already, if value is in 'value' attribute it goes lost, hmm.. maybe
cos it is treated as Object. Was fixed by putting the value in the param
tags body.


mteccles wrote:
> 
> Hi,
> 
> Where and how do struts  2 param tags get evaluated and injected into the
> parent tag? When my custom tag is being invoked, the
> Component.getParameters() method is returning empty list. Is there some
> configuration required to make this work?
> 
> <cp:text name="*****" ><s:param name='user.name' value='test un'
> /><s:param name='user.age' value='test age' /><s:param
> name='user.cameFrom' value='test came' /></cp:text>
> 

-- 
View this message in context: http://www.nabble.com/using-param-tag-inside-custom-tag-tp15708693p15708838.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