If your form bean is named "UserEditForm", then the following
should retrieve and display the property "accepted" if it exists,
else it should display nothing.

<bean:write name="UserEditForm" property="accepted" ignore="true"/>

HTH,

robert


> -----Original Message-----
> From: Andreas Schyman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 5:46 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Logic] How to access a property of an ActionForm?
> 
> 
> I'm trying to access a property of an ActionForm, but I can't reach it.
> Actually, I'm not really sure of how to do it. 
> 
> I'm trying to do the following in my jsp:
> 
> <bean:struts id="uef" formBean="UserEditForm"/>
> <bean:define id="isAccepted" name="uef" property="accepted"/>
> <logic:empty property="isAccepted">
>       Nothing here
> </logic:empty>
> 
> 
> But I get:
> [ServletException 
> in:/WEB-INF/jsp/pages/admin/showuserdetails.jsp] No getter
> method for property created of bean uef'
> 
> Can anyone point me to where I could find info on how to do this?
> 
> Regards Andreas
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to