here is my question

the JSP bean tag in the  JSP form has associations to the HTML form elements
to the  middleware bean object.
I found the bean tag can only pass scalar properties to the bean.  What if I
have a HTML table like presentation
where I have rows of data .  How will I associate the  setXXX(),  getXXX()
properties for each row to the bean.

Here please remember to note the Input elements in the <TABLE> will carry
the same name for multiple rows.
for eg.

 <TABLE>
 <TR>
       <TD> Emp No.</TD>
       <TD> Emp Name</TD>
       <TD> Salary</TD>
 </TR>
 <TR>
       <TD> <input type="text" name="EmpNo" size="5"  value = "100" ></TD>
       <TD> <input type="text" name="EmpName" size="35"  value = "Ananda
Krishnan" ></TD>
       <TD> <input type="text" name="Salary" size="10"  value = "7000"
></TD>
 </TR>
 <TR>
       <TD> <input type="text" name="EmpNo" size="5"  value = "200" ></TD>
       <TD> <input type="text" name="EmpName" size="35"  value = "Shankar
Narayanan" ></TD>
       <TD> <input type="text" name="Salary" size="10"  value = "6500"
></TD>
 <TR>
 </TABLE>

So, my question is will the  setXXX() and getXXX() method call from the bean
, will set the properties for all the rows???

<jsp:useBean id="mybean" scope="session"
class="com.bofasecurities.ctc.balancesheetcategory.employee />

<jsp:setProperty name="mybean" property="EmpCode" />
<jsp:setProperty name="mybean" property="EmpName" />
<jsp:setProperty name="mybean" property="EmpSalary" />

Hope the question is clear

Rgds
shan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to