How can I go about building dynamic web pages using Struts where in the contents of my page would come from a database? i.e. The contents of the page (the text boxes, radios, buttons etc. their labels, validations required on them; need to be picked up from the database.
I looked at DynaActionForm but it would only help if I know the form contents while deploying.
Any thoughts?
-
Dynamic pages (3 messages)
- Posted by: Ram Cherote
- Posted on: August 18 2003 08:20 EDT
Threaded Messages (3)
- UI, DB by Ian Mitchell on August 18 2003 16:22 EDT
- UI, DB by Ram Cherote on August 19 2003 01:07 EDT
- UI, DB by Ian Mitchell on August 19 2003 11:06 EDT
- UI, DB by Ram Cherote on August 19 2003 01:07 EDT
-
UI, DB[ Go to top ]
- Posted by: Ian Mitchell
- Posted on: August 18 2003 16:22 EDT
- in response to Ram Cherote
I suppose you could include some PHP (or similar script) that would access the DB and echo out the form contents as necessary.
But I do have concerns about the architecture your question implies. Can you tell us why you are considering putting the UI definition in a DB? -
UI, DB[ Go to top ]
- Posted by: Ram Cherote
- Posted on: August 19 2003 01:07 EDT
- in response to Ian Mitchell
Thanks Mitchell.
An admin user can create process flows on the fly (without any code) by mentioning the fields he wants on a screen, the number of screens etc..etc...
Now these processes when used, should be able to create jsp pages based on the information defined by the admin.
What about the architecture concerns you and why? -
UI, DB[ Go to top ]
- Posted by: Ian Mitchell
- Posted on: August 19 2003 11:06 EDT
- in response to Ram Cherote
I just had a general concern (or at least curiosity) as to why the presentation layer should be so closely tied to a DB server.