newton.dave wrote:
>
> ryangr wrote:
>> I have a custom tag declared in my view as such:
>> <wd:documentTypeList id="document.type" selectedType="<s:property
>> value="%{document.type}" />" showNoneOption="true" />
>>
>> The problem is it then throws an exception with the message "Unterminated
>> <wd:documentTypeList tag".
>>
>> Obviously there's a problem with the tag thinking it is being closed at
>> the
>> <s:property value=" quotation mark,
>
> You can't nest custom tags like that.
>
>> but my question is how can I pass a
>> Struts property to a custom tag attribute?
>
> Does:
>
> <wd:documentTypeList id="document.type"
> selectedType="${document.type}" showNoneOption="true" />
>
> not work?
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
Dave,
selectedType="${document.type}" appears to work...thanks for correcting my
stupidity! :) I've been so focused on this I completely forgot to do it that
way.
Thanks!
--
View this message in context:
http://www.nabble.com/Custom-tag-attribute-as-struts-property--tp22042279p22042864.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org