Howard:
There's something that sounds very much like what you're looking for in
Expresso, an open-source web app framework we host at our site
(http://www.javacorporate.com). Have a look at the "Transaction" package,
and the doc associated with it. In a nutshell, it's a way of packaging up a
sequence of interation with a user in a UI-independant way, then either
generating a form for the inputs, outputs, and actions, or interacting with
an existing form (e.g. a JSP). There's capability for validation and
security, and a finite-state-machine like way of moving from one "state" of
the transaction to another.
Hope it's helpful.
Mike
Jcorporate Ltd
http://www.javacorporate.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Howard Lee
> Sent: Wednesday, June 14, 2000 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Form Generator
>
>
> 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
___________________________________________________________________________
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