There's more about the dotted syntax here:
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#doc.Properties
under Property References.
Like Struts-Bean tags, the property attribute for the Struts-HTML tags
accept simple, nested, and indexed expressions.
On Wed, 4 Jul 2001, Narasimhan, Shyamala wrote:
hi
i would like to use two different forms in an action class... kindly advise
as to how to specify the action mapping
Although it is not possible to have 1 form beans per action *mapping*, it
is definitely possible to have 1 form beans
that encapsulates the two others, while exposing both set of
properties.
Fr.
-Original Message-
From: Grassotti, Michael [mailto:[EMAIL PROTECTED]]
Sent: 09 July 2001 22:27
To: [EMAIL PROTECTED]
Subject: RE: specifying multiple forms in an action mapping
Has anyone gotten back to you on this? I'm
Has anyone gotten back to you on this? I'm having the same problem...
-Original Message-
From: Narasimhan, Shyamala [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 9:21 AM
To: [EMAIL PROTECTED]
Subject: specifying multiple forms in an action mapping
hi
i would like
The short answer is you can't.
Though, you could create a single ActionForm as a wrapper around other
forms and then access them through the infamous dotted syntax.
If that doesn't work for you, if you talked a bit more about why you
want multiple forms, someone may have a better answer ;-)
If what you want is to have one Action class that can handle input from
multiple forms, then you just need to add a different action mapping in
struts-config.xml for each input form, giving each a distinct path. In the
Action itself, you would need to check to see which kind of form (or which
6 matches
Mail list logo