Thanks James, but how would you do data validation of each field? I want the
program to return back to the form page if there is any error with
appropriate error message for each field. Again thanks.

howard

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of James
Todd
Sent: Tuesday, June 13, 2000 10:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Form Generator


this is trivial. not sure about available software but what i've done in
the past is:

    create a "FormManager" which takes a series of attributes and
    generates the appropriate html form

    codify the form data as property attributes following some
    conventions

    read the form data via a "PropertyManager", perferably one
    which will refresh when the property data changes

    the FormManager can even update the form field with the
    appropriate session data for smart defaults

    supporting all html forms and associated attributes is really
    pretty simple and can be achieved using seven or so standard
    attributes

i did this nearly three years ago. if i was to take a stab at it today
i'd consider some form of xml data (vs property files) and pull
the data over http from a centralized "form master repository"
(vs read local file). xul looks interesting to me but i've opted for
a simplier route as it is a bit heavier then i had hoped for ... imho.

hope this helps,

- james

Howard Lee wrote:

> Hi,
>
> Has anyone worked on a form generator? I'm trying to write a program where
I
> define fields (whether it's a textfield, or drop down box) and a servlet
or
> JSP generates a form? Can this be possible? Any resources out there? Thank
> you very much!
>
> howard
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to