You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matt Raible <ma...@yahoo.com> on 2001/07/18 15:19:10 UTC

getting an action mapping into a servlet

I have the following struts tag in my form:

<strutshtml:form action="/signIn" focus="username">

That changes to the following when the jsp is compiled:

<form name="signInForm" method="POST" action="/NASApp/timetracker/signIn.do">

What I'd like to do is get the action string into a session variable, or some
variable, so I can grab it and use it in a servlet.  Does anyone know how to do
this?

Thanks,

Matt

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Re: getting an action mapping into a servlet

Posted by Peter Alfors <pe...@irista.com>.
check out:

    org.apache.struts.taglib.html.FormTag.getActionMappingURL()

HTH,
    Pete

Matt Raible wrote:

> Here's the entry for this mapping in the struts-config.xml
>
> <action
>        path="/signIn"
>
> type="us.co.douglas.application.timetracker.presentationlogic.SignInAction"
>        name="signInForm"
>        scope="request"
>        validate="true"
>        input="/signIn">
>          <forward
>           name="success"
>           path="/mainMenu" />
>       </action>
>
> I'd like to get this "/NASApp....do" value into my servlet without adding
> anything to jsp's.
>
> Thanks,
>
> Matt
>
> --- Matt Raible <ma...@yahoo.com> wrote:
> > I have the following struts tag in my form:
> >
> > <strutshtml:form action="/signIn" focus="username">
> >
> > That changes to the following when the jsp is compiled:
> >
> > <form name="signInForm" method="POST" action="/NASApp/timetracker/signIn.do">
> >
> > What I'd like to do is get the action string into a session variable, or some
> > variable, so I can grab it and use it in a servlet.  Does anyone know how to
> > do
> > this?
> >
> > Thanks,
> >
> > Matt
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/


Re: getting an action mapping into a servlet

Posted by Matt Raible <ma...@yahoo.com>.
Here's the entry for this mapping in the struts-config.xml

<action
       path="/signIn"
      
type="us.co.douglas.application.timetracker.presentationlogic.SignInAction"
       name="signInForm"
       scope="request"
       validate="true"
       input="/signIn">
         <forward
          name="success"
          path="/mainMenu" />
      </action>

I'd like to get this "/NASApp....do" value into my servlet without adding
anything to jsp's.

Thanks,

Matt

--- Matt Raible <ma...@yahoo.com> wrote:
> I have the following struts tag in my form:
> 
> <strutshtml:form action="/signIn" focus="username">
> 
> That changes to the following when the jsp is compiled:
> 
> <form name="signInForm" method="POST" action="/NASApp/timetracker/signIn.do">
> 
> What I'd like to do is get the action string into a session variable, or some
> variable, so I can grab it and use it in a servlet.  Does anyone know how to
> do
> this?
> 
> Thanks,
> 
> Matt
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/