struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elankath, Tarun (Cognizant)" <ETa...@blr.cognizant.com>
Subject RE: nesting
Date Thu, 25 Jul 2002 15:52:52 GMT
see http://husted.com/struts/tips/006.htm

-----Original Message-----
From: Balaraman, Vinod Kumar (Cognizant)
[mailto:BVinod@chn.cognizant.com]
Sent: Thursday, July 25, 2002 5:29 PM
To: struts-user@jakarta.apache.org
Subject: nesting


Hi,

I would be happy if get a solution for the question described below?

As per my understanding FormBean is mirror structure of the jsp page, since
it maps every field defined in it to the field in the jsp.
My Jsp page has set of rows, each row containing one employee information.
For ex: each row has emp_name and emp_id, emp_dateofBirth etc. 
How do i define the fields in my FormBeanClass in this case.

There are two possible ways:
	1) Define fields like emp_name and emp_id, emp_dateofBirth etc with
get and set methods - In this case how all the employee information gets
updated? Do I need to use any collection or Enumeration classes here? If so
how?
	or
	2) To Define all the fields in the Formbean like
		emp_name_1		emp_id_1
emp_dateofBirth_1 
		emp_name_2		emp_id_2
emp_dateofBirth_2 
		emp_name_3		emp_id_3
emp_dateofBirth_3 
		.................
	think this is not the good way........

Regards,
Vinod
Ext: 4485


Mime
View raw message