You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eric SCHULTZ <Er...@elixonline.com> on 2003/12/05 16:53:56 UTC

RT expr value in custom tag

Good morning...

I'm trying to write my own custom tag library for Struts.  I've had some
initial success, but now I'm having some trouble.

I want to set an attribute value from the value of a bean get.  But what I
end up with in my tag is JSP code, not the value in the bean.

I.e.: 
<v:properties template="inputmode" parameter="<%=
UserSessionBean.getInputMode() %>"/>

is not translated.

How do I get the result of UserSessionBean.getInputMode() in my tag?  Do I
need to implement Expression Language?  Is there already a utility class
somewhere in Struts 1.1 that would evaluate something like
${UserSessionBean.inputMode} for me?

Thanks.

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