Hi, I am writing an application, which uses struts and hibernate. when i try to retreive the values from bean, i get the following error: E SRVE0026E: [Servlet Error]-[No getter method for property agentName of bean aMEnrollment]
The following is the code iam using...
struts-config.xml: - the relevant form definition <form-bean name="AMEnrollmentForm" type="com.abc.forms.AMEnrollmentForm" /> - the relevant action mapping <action path="/AMEnrollment" type="com.abc.actions.AMEnrollmentAction"> <forward name="success" path="/jsp/am_enrollment.jsp" /> </action>
E SRVE0026E: [Servlet Error]-[No getter method for property agentName of bean aMEnrollment]: javax.servlet.jsp.JspException: No getter method for property agentName of bean aMEnrollment at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:973) at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:225)
form-bean definition is NOT required for an action-mapping and in this case, it's irrelevant to the problem.
you need to expose the full Java type of the individual enrollment bean via the 'type' attribute of the logic:iterate tag (see http://struts.apache.org/userGuide/struts-logic.html#iterate). also, make sure you have the 'agentName' field defined along with the corresponding getter and setter.
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.