Thanks for your reply,

I meant that you never know about the # of questions. One time it could
be 5 of them, next time 10.

-----Original Message-----
From: Aur Gal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How to create bean from dynamic JSP page


I don't really understand what you mean by dynamically. If you mean that
there are ten fields on the form but not all of them will be displayed
each
time, then just create a getter setter for each one of them. If the
field is
not present on the form the get set won't be called. 

If you mean that there are always five questions but their content is
different then just treat each
one of them as a field and call them for example:
question1,question2,etc..

hope it helps  

-----Original Message-----
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 10:21 AM
To: [EMAIL PROTECTED]
Subject: How to create bean from dynamic JSP page


Hello,

We are trying to migrate existing application from JSP/Servlets to
struts. I have a JSP page which should display dynamically different
questions. I don't know how to create a form bean with all
setters/getters since I don't know in advance all the names. Anyone
knows how to accomplish this?

Thanks, Mark.

Reply via email to