Colm,
 
Thanks for quick reply.
his page has one particular teacher and all students under him.
so the code to display info about teacher is:
 

<html:form action="teacherEdit" name="teacherDisplayForm" 
type="com.myProject.TeacherDisplayForm" > 

<table border="0" width="100%">

<tr>

<th align="right">

SSN:

</th>

<td align="left">



<input type="hidden" name="SSN"

value="<%= request.getParameter("SSN") %>">

<html:hidden property="SSN" value="<bean:write name="teacher" property="SSN" />"/> 

<bean:write name="teacher" property="SSN" />

</td>

</tr>

</table>

<table>

<logic:iterate id="student" name="students">

<tr>

<input type="hidden" name="SSN"

value="<bean:write name="student" property="SSN" />">

<a href="studentDisplay.do?SSN=<bean:write name="student"

property="SSN" />">

<bean:write name="student" property="SSN" />

</a>

</td>

...

The code from <logic:iterate> and below displays the rows of students under that 
teacher (and displays each students' SSN under it)

 

Thanks in advance for the help.

 


Colm Garvey <[EMAIL PROTECTED]> wrote:
Need to see the code, compadre :)

-----Original Message-----
From: as as [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 13:07
To: [EMAIL PROTECTED]
Subject: Two beans in same form


Hi

I have two beans - teacher and student in same form and with same
variable(property) SSN.
Teacher is a subclass of my studnet (in my design)
error comes as no getter for SSN for bean student ...
javax.servlet.jsp.JspException: No getter method for property employeeID of
student
how do i differentiate these two ,.....

Thanks much for help.




Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam


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

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

Reply via email to