You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Filip Polsakiewicz <Fi...@innoface.de> on 2003/06/27 09:30:48 UTC
Hi,
i get the following error message in my jsp and i don't really understand
why:
Define tag can contain only one of name attribute, value attribute, or body
content
Now i use two define tags in my jsp:
<bean:define id="groupname" scope="page"><bean:write name="groupForm"
property="groupname"/></bean:define>
and
<bean:define id="curUser" name="usersit" property="username" scope="page" />
Any help would be appreciated.
Thanks, Filip
RE:
Posted by Filip Polsakiewicz <Fi...@innoface.de>.
> -----Original Message-----
> From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> Sent: Friday, June 27, 2003 9:34 AM
> To: Struts Users Mailing List
> Subject: Re: <bean:define>
>
>
> if groupForm.getGroupname() returns null (or "") your first
> bean:define will have no body content, and will so have no
> value to assign to the bean to create.
>
Thanks. That sould be it. Since i use the same JSP for creating and changing
groups. Changing works fine because there is a groupId already.
> Nico.
>
>
> > Hi,
> > i get the following error message in my jsp and i don't really
> understand
> > why:
> >
> > Define tag can contain only one of name attribute, value
> attribute, or body
> > content
> >
> > Now i use two define tags in my jsp:
> >
> > <bean:define id="groupname" scope="page"><bean:write name="groupForm"
> > property="groupname"/></bean:define>
> >
> > and
> >
> > <bean:define id="curUser" name="usersit" property="username"
> scope="page" />
> >
> > Any help would be appreciated.
> >
> > Thanks, Filip
> >
> >
> >
> >
>
>
> ------------------------------------------------------------------
> --------------
>
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re:
Posted by Nicolas De Loof <ni...@cgey.com>.
if groupForm.getGroupname() returns null (or "") your first bean:define will have no body content, and will so have no
value to assign to the bean to create.
Nico.
> Hi,
> i get the following error message in my jsp and i don't really understand
> why:
>
> Define tag can contain only one of name attribute, value attribute, or body
> content
>
> Now i use two define tags in my jsp:
>
> <bean:define id="groupname" scope="page"><bean:write name="groupForm"
> property="groupname"/></bean:define>
>
> and
>
> <bean:define id="curUser" name="usersit" property="username" scope="page" />
>
> Any help would be appreciated.
>
> Thanks, Filip
>
>
>
>
--------------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org