I have the same problem too, and I'm sure there are many more like us. I
believe this is a problem struts has not addressed yet. Fortunately, they
are working on Dynamic form generation feature for struts1.1. I don't know
when it is going to be ready!!
Here is a work-around: Make your JSPs without using FormBeans (you should
have your won Java classes to dynamically generate the form), and extract
input parameters from request in your action and stuff them into a
Hashtable for further processing. However, someone should clarify if this
approach violates struts recommended architecture.
I would definitely like to see a better solution. I have posted similar
questions earlier on this topic, but I have got no response.
Sastry.
At 01:27 PM 8/29/2001 -0500, you wrote:
I have the same 'problem'.
I would like to be able to create a form dynamically depending on the
structure of a table (I used to do this with 'plain' JSP).
Any ideas?
Regards.
Luis Olivares.
[EMAIL PROTECTED]
--
Intelligence is the ability to avoid doing
work, yet getting the work done
--Linus Torvalds--
- Original Message -
From: John Townsend [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 12:54 PM
Subject: Dynamic Form Beans?
I am working on a project where is would be nice to have the ability to
define a dynamic form bean (i.e. a form bean where the fields are
defined at runtime). The most obvious (but perhaps not the best)
solution to this problem would be if the ActionServlet could handle
saving data in a form bean that was a hashtable.
Has someone else run into this problem and come up with a solution?
Thanks,
-- John Townsend
Sastry Varanasi
Tel : 408-526-6278
INSMBU, Cisco Systems