Hi, I have created a dynamic html form using struts. Bascially I have a user preference page and want to dynamically show text input fields based on preference names (i.e. favorite color, age, etc.) stored inside a database table.
Since my page would have both dynamic and non dynamic input fields I integrated the page with struts. This is how I accomplished it: 1. Each dynamic created text field was given a name that had a prefix of "up_" to indicate it was a dynamic generated user preference field. 2. Inside my Form and Action class when the user hit the submit button on the page I would loop through all the request parameters looking for paramters that started with up_. Any more questions, let me know. --- Rajeev Singh <[EMAIL PROTECTED]> wrote: > Hi Tom, > By Dynamic generation I mean generation of WEB > pages on Fly. If we > generate web pages on fly I don't know how it can be > included in the > WAR. In my webapp I am having a fixed set of JSP's > plus while > application is running the users will create > additional pages which are > reports or new forms matching to their > transactions/profiles. > Its here that I am not getting how can I use > Struts. > > Thanx, > Rajeev > > -----Original Message----- > From: Tom Lister [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 30, 2001 3:45 PM > To: 'Rajeev Singh '; ''struts-user' ' > Subject: RE: Dynamically Developing HTML forms > > Hi Rajeev > No answers as I don't understand the question. > I am really curious a to what you mean by a > dynamically generated > application as most of struts is aimed at dynamic > content. > Do you mean using introspection/reflection to build > an app on the fly? > > > -----Original Message----- > From: Rajeev Singh > To: 'struts-user' > Sent: 11/30/01 10:12 AM > Subject: FW: Dynamically Developing HTML forms > > Hi all , > I am repeating my question as to is there I can > create a web app using > struts if I have to dynamically generate HTML forms > as separate HTML > pages from the application of WAR type. > > thanx > > -----Original Message----- > From: Rajeev Singh [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 28, 2001 6:14 PM > To: 'struts-user' > Subject: Dynamically Developing HTML forms > > Hi, > I have a query as to whether I can use Struts > comfortably for an > application wherein I have to generate HTML /JSP > pages Dynamically. All > these JSP's will have different names that too > generated dynamically and > not predecided names. I don't think we can WAR in > this case so we cant > follow Model 2 MVC and we have to go for Model 1. > > Thanx, > Rajeev > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Scott __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

