In Struts1.3 How Handling Multiple FormBean property to action

后端 未结 1 458
无人及你
无人及你 2021-01-27 11:57

I am using Struts1.3, I have Jsp page which is showing the list of employees on that page. For this what i did is, I have a action inside that action i am calling a function whi

相关标签:
1条回答
  • 2021-01-27 12:46

    1 have an Action Form 2 map action form to Action in struts-config.xml 3 have a field List<Employee> in your form 4 on JSP use the following code

    <logic:iterate id="emp" indexId="i" name="FormName"
                property="employees">
    
     <html:text value="${FormName.employees[i].employeeName}" styleClass="fieldbox3"/>
     <html:text value="${FormName.employees[i].employeeSal}" styleClass="fieldbox3"/>
    
    <logic:iterate>
    
    0 讨论(0)
提交回复
热议问题