[Opensource] Problem understanding usage for <bean:define>
extended tag
Michael Rimov
rimovm at centercomp.com
Thu Feb 13 11:13:33 PST 2003
At 11:40 AM 2/13/2003 -0500, you wrote:
>Ok, this has had me scratching my head and not making very much progress for
>the last day and a half :(
>
>I'm trying to use the extended Struts tags, and I'm doing this in my State:
>
> // ...
>
> Transition createGroupTrans = new Transition();
> createGroupTrans.setName("createNewGroup");
>
>createGroupTrans.setControllerObject(com.xxx.custom.CreateGroupController.cl
>ass);
> createGroupTrans.enableReturnToSender(response);
> createGroupTrans.addParam("parm1", "parm1value");
> response.add(createGroupTrans);
Try this:
either:
<html:exLink property="createNewGroup"/>
or
<bean:define id="newGroupURL" property="createNewGroup.url"
type="java.lang.String"/>
<bean:define id="newGroupLabel" property="createNewGroup.label"
type="java.lang.String"/>
<html:link page="<%=newGroupURL%>"><%=newGroupLabel%></html:link>
HTH!
-Mike
More information about the Opensource
mailing list