struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martin.coo...@tumbleweed.com
Subject Re: Getting formName from an ActionMapping
Date Tue, 28 Aug 2001 03:45:26 GMT
I think this is what you're after:

    ActionMapping targetMapping = getServlet().findMapping("/signIn");
    String formName = targetMapping.getName();

--
Martin Cooper


----- Original Message -----
From: "Matt Raible" <matt_raible@yahoo.com>
To: <struts-user@jakarta.apache.org>
Sent: Monday, August 27, 2001 12:05 PM
Subject: Getting formName from an ActionMapping


> 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/
>



Mime
View raw message