I am pretty new with struts and wrote the following .JSP code.  Is there a
better way to write this?  I could not find a tag in STRUTS to let me just
get the property from the object.  My object does not have get/set methods,
so I had to resort to using <%= tag.  Is there a tag in STRUTS that would
just access the "raw" String attribute of the object instead of calling
get/set?

I also tried using the keyboardmonkey nested library, but kept getting
NullPointerExceptions when nested:iterate would execute

<jsp:useBean id="profileHeaders"
class="com.myprofiles.client.web.bean.MemberProfileHeadersBean" />
<logic:iterate id="profile" name="profileHeaders" property="profiles"
type="com.myprofiles.service.common.ProfileHeaderValue">
  <%=profile.name%>
  <%=profile.description%>
</logic:iterate>

Thanks.


-AP_
www: http://www.alexparansky.com


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

Reply via email to