If you want the form type, look up Action.FORM_BEANS_KEY in the
application context. This is the ActionFormBeans class that Struts loads
from the configuration file. 

http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionFormBeans.html

If you need to instantiate the type, take a look at what the
ActionController does.

If you want the form name, that would be in the mappings. These are kept
under org.apache.struts.action.MAPPINGS, and also passed with the
mapping parameter to perform() (mapping.getMappings).

http://jakarta.apache.org/struts/api/org/apache/struts/action/ActionMapping.html


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/

Matt Raible wrote:
> 
> In one of my Action classes, is it possible to get a "form" name of another
> action?
> 
> For instance, I want to get "signInForm" and all the information I have is
> "signIn"
> 
>       <action
>        path="/signIn"
>        type="foo.bar.SignInAction"
>        name="signInForm"
>        scope="request"
>        validate="false"
>        input="/signIn">
>          <forward
>           name="success"
>           path="/mainMenu" />
>       </action>
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/

Reply via email to