Dynamic pages

Discussions

Web tier: servlets, JSP, Web frameworks: Dynamic pages

  1. Dynamic pages (3 messages)

    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?

    Threaded Messages (3)

  2. UI, DB[ Go to top ]

    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?
  3. UI, DB[ Go to top ]

    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?
  4. UI, DB[ Go to top ]

    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.