The name is set in two ways (both within the struts-config.xml) under the
action if you specify just a 'name' property, the name of the form is that,
if you specify a 'name' and an 'attribute' (in effect an alias) property it
will be the 'attribute' property.  For example, the name of the form will be
'xyzForm' in this action:


                <action path="/abcChange" 
        
type="com.marshbourdon.example.struts.action.abc.ChangeAction"
                                attribute="xyzForm"
                                name="abcForm"
                                scope="request"
                                validate="false"
                                parameter="change">
                        <forward name="success" path="abcList"
redirect="false" />
                </action>

Christopher Marsh-Bourdon
www.marsh-bourdon.com


-----Original Message-----
From: John Moore [mailto:[EMAIL PROTECTED] 
Sent: 16 May 2005 13:09
To: Struts Mailing List
Subject: Getting name of form bean?


In a JSP which uses html:form, is there any way of determining the name 
of the form bean (assuming it's been set in the mapping, of course, not 
in the html:form tag!).

TIA


-- 
==============================================
John Moore  -  Norwich, UK  -  [EMAIL PROTECTED]
==============================================

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


--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3166
--------------------------------------------------------------------------------


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

Reply via email to