The validator actually goes by the ActionMapping attribute name, which
by default is the formbean name. So you can have a base formbean,
defined as an DynaActionForm, and then give it different attributes in
each mapping.
action name=baseForm attribute=loginForm
action name=baseForm
Hi,
we found some help in the way to instanciate a DynaActionForm presented by Carl Walker
. But actually, we aren't able to put the form in the request. This works only in the
session object.
Is there anyone to help me?
Thanks to answer quickly
Julie Cardon
)
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 4:44 AM
To: Struts Users Mailing List
Subject: Re: How to instantiate a DynaActionForm?
The validator actually goes by the ActionMapping attribute name, which
by default is the formbean name. So
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12356.html
-Original Message-
From: Joseph Yang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:07 AM
To: 'Struts Users Mailing List'
Subject: How to instantiate a DynaActionForm?
Hello,
I have two pages: login.jsp and
I have an org.apache.struts.validator.DynaValidatorForm called AccountForm in
my struts-config.xml. The code below is similar to that found in the link
referenced below, except I call the initialize() method to get the initial=
attributes from the form bean definition.
// load up
Another approach would be to combine the loginForm and the
userProfileForm into a single coarse-grained form. Then you could simply
set the additional properties, rather than instantiate another object.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12356.html
-Original Message-
on this?
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:13 PM
To: Struts Users Mailing List
Subject: Re: How to instantiate a DynaActionForm?
Another approach would be to combine the loginForm and the
userProfileForm into a single coarse-grained
-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:13 PM
To: Struts Users Mailing List
Subject: Re: How to instantiate a DynaActionForm?
Another approach would be to combine the loginForm
and the
userProfileForm into a single coarse-grained form.
Then you
8 matches
Mail list logo