How can I not use the struts-config.xml but I can use my own config to
generate a HTML form and use a standard validator to validate the form
data ??


On Fri, 28 Jan 2005 10:12:32 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> At 8:03 AM -0700 1/28/05, Wendy Smoak wrote:
> >From: "Eric Chow" <[EMAIL PROTECTED]>
> >
> >>How can I create forms without defining it in the struts-config.xml?
> >>I mean I want o use my own config and generate a HTML form with Struts
> >>action handling.
> >
> >Take a look at LazyDynaBean and LazyValidatorForm.  There's some
> >information on the wiki:
> >http://wiki.apache.org/struts/StrutsCatalogLazyList  section 2.4 .
> 
> A developer on my team developed a system to retrieve survey
> configuration data from a database and present it to users in Struts.
> This involved dynamic form creation and validation.  The gist was
> that a PlugIn, when initialized, used database data to create and
> register DynaForms.  I believe it was a subclass of
> DynaActionValidatorForm which could interact with this same PlugIn to
> do the Survey specific validation (where the rules came from the
> database) while delegating validation for any standard fields (like
> contact info) to normally configured validator XML.
> 
> As Wendy points out, now that there are LazyValidatorForms, this
> would probably be simpler, because you would only need to extend the
> validation method, and could probably skip defining new form classes.
> 
> Joe
> 
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to