You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Hoeffner <mi...@moonlightlabs.com> on 2001/12/05 20:48:51 UTC
setting a default bean for logic tags
Is it possible to set a default bean for logic tags like it is for form tags
so that they don't have to be named in each logic tag?
If I don't specify the "name" in an <html:text> tag, the "name" from the
parent form and its corresponding action tag will be used. For example, in
the below <html:text> tag, fooForm will be used as the "name" from the
parent form since the "name" is not specified.
<action path="/foo" type="FooAction" name="fooForm" scope="session"
input="/foo.jsp">
...
<html:form action="/foo">
<html:text property="bar"/>
</html:form>
Is there a way to do this with logic tags? I have lots of redundant logic
tags that need to use different beans, but since I have to have a different
value for the "name" on all of them, there's no clean way to reuse the JSP.
Thanks,
Mike
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>