tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damian Fauth <dfa...@users.sourceforge.net>
Subject Re: <jsp:useBean> weirdness in custom tags
Date Thu, 15 Jun 2000 22:21:38 GMT
So I WAS missing something obvious! Thanks Hans

Damian

Hans Bergsten wrote:
> 
> It may be a bug that Tomcat doesn't report what the problem is in a
> sensible way, but it seems like what you want to accomplish should be
> done without using <jsp:useBean> in the first place.
> 
> >From your example, I take it that what you want is to make one element
> from the array (or other collection) specified by the "values" attribute
> available as a variable with the name specified by the "name" attribute
> within the body of the action element. To do this, use a TagExtraInfo
> class for your tag handler, that declares that this variable should be
> generated by the JSP container. Then you don't have to use <jsp:useBean>
> at all. See the JSP 1.1 spec and the API docs for details about TagExtraInfo.
> 
> Hans
> --
> Hans Bergsten           hans@gefionsoftware.com
> Gefion Software         http://www.gefionsoftware.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

Mime
View raw message