Hi All,
I am facing a problem displaying a table using logic:iterate tag.
I am using two separate beans in my jsp for displaying different values.
The logic:iterate loop works absolutely fine if I pass just a bean to display the values but when I pass an array of beans, it gives me the following error :
Root cause of ServletException
javax.servlet.jsp.JspException: No getter method for property Ranges of bean Ranges
I will explain in short what i am doing.
I have a jsp NPResult.jsp which has a set of records(right now hard-coded).The user selects a row and depending on that i have to display details of that record in another jsp - NPOrderDetails.jsp. I am passing a hidden value for this through my first jsp.
In order to get the details, i am using 2 separate beans (which is hard-coded right now as this is just a prototype).
I am attaching the required files for reference.
<<NPOrderDetails.jsp>> <<NPResult.jsp>> <<SearchAction.java>> <<SearchForm.java>> <<Ranges.java>> <<Search.java>> <<struts-config.xml>>
Can anybody please help me out with this problem. I have been trying to figure this out for quite some time.
Thanks and Regards,
Keerti
NPOrderDetails.jsp
Description: NPOrderDetails.jsp
NPResult.jsp
Description: NPResult.jsp
SearchAction.java
Description: SearchAction.java
SearchForm.java
Description: SearchForm.java
Ranges.java
Description: Ranges.java
Search.java
Description: Search.java
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <struts-config> <!-- =============== Form Bean Definitions ============ --> <form-beans> <form-bean name="employeeForm" type="org.apache.struts.webapp.employee.EmployeeForm"/> <form-bean name="loginForm" type="org.apache.struts.webapp.employee.LoginForm"/> <form-bean name="SearchForm" type="org.apache.struts.webapp.NPPrototype.SearchForm"/> <form-bean name="NPOrderDetailsForm" type="org.apache.struts.webapp.NPPrototype.NPOrderDetailsForm"/> </form-beans> <!-- ========== Global Forward Definitions --> <global-forwards> <forward name="LOGIN" path="/TestStrutsNew/Login.jsp"/> <forward name="NPOrder" path="/NPPrototype/NPResult.jsp"/> <forward name="ERROR" path="/TestStrutsNew/Errorpage.jsp"/> </global-forwards> <!-- =============== Action Mapping Definitions ============ --> <action-mappings> <action path="/employee" type="org.apache.struts.webapp.employee.EmployeeAction" name="employeeForm"> <forward name="results" path="/TestStrutsNew/results.jsp" /> </action> <action path="/login" type="org.apache.struts.webapp.employee.LoginAction" name="loginForm"> <forward name="SUCCESS" path="/NPPrototype/NPResult.jsp"/> <forward name="FAILURE" path="/TestStrutsNew/Errorpage.jsp"/> </action> <action path="/NPPrototype" type="org.apache.struts.webapp.NPPrototype.SearchAction" name="SearchForm"> <forward name="Details" path="/NPPrototype/NPOrderDetails.jsp" /> </action> <action path="/NPPrototype1" type="org.apache.struts.webapp.NPPrototype.SearchAction" name="NPOrderDetailsForm"> <forward name="Success" path="/NPPrototype/NPResult.jsp" /> </action> </action-mappings> </struts-config>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>