struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Taylor" <rtay...@mulework.com>
Subject RE: [Logic] How to access a property of an ActionForm?
Date Tue, 03 Sep 2002 11:44:02 GMT
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:andreas.schyman@ctrl-ps.com]
> Sent: Tuesday, September 03, 2002 5:46 AM
> To: 'struts-user@jakarta.apache.org'
> 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:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:struts-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message