Hi all,
I need to develope modular dinamic
jsp. This is my example:
class People {
String name;
String age;
...
getter and setter methods...
}
class myClass {
People man;
People girl;
....
getter and setter methods...
}
In my controller, action or other... request.setAttribute("myObj", instanceOfMyClass)
In my JSP1, I can get instanceOfMyClass request.getAttribute("myObj");
In my JSP1, I want call 2 same include:
<jsp:include page="printPeople.jsp">
<jsp:param value="${instanceOfMyClass.man}" name="people"/> How can I pass People object to printPeople.jsp??? Now man istance
</jsp:include>
<jsp:include page="printPeople.jsp">
<jsp:param value="${instanceOfMyClass.girl}" name="people"/> How can I pass People object to printPeople.jsp??? Now girl istance
</jsp:include>
I want create JSP2 that print People informations:
<c:out value="${people.name}" />
<c:out value="${people.age}" />
How can I solve my problem?
Thanks in advance?