You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gabriel Belingueres <be...@gmail.com> on 2007/07/10 22:43:40 UTC

[S2] How to obtain current action name from JSP?

Hi,

Which OGNL / JSTL expression could I use from a JSP page that will
return the currently executed action's name?

TIA,
Gabriel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] How to obtain current action name from JSP?

Posted by Gabriel Belingueres <be...@gmail.com>.
Thanks Musachy, I'll give it a try.

I want to create my menuing subsystem directly based on the called
action's name to test which menu item is the currently selected one.
Knowing the action's name would avoid me at least to define some sort
of string identifier somewhere to test against.

Any other ideas are welcomed. :)

Gabriel

2007/7/10, Musachy Barroso <mu...@gmail.com>:
> Try:
>
> #context[@com.opensymphony.xwork2.ActionContext@ACTION_NAME]
>
> //are you sure you need that?
>
> musachy
>
> On 7/10/07, Gabriel Belingueres <be...@gmail.com> wrote:
> >
> > Hi,
> >
> > Which OGNL / JSTL expression could I use from a JSP page that will
> > return the currently executed action's name?
> >
> > TIA,
> > Gabriel
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] How to obtain current action name from JSP?

Posted by Musachy Barroso <mu...@gmail.com>.
Try:

#context[@com.opensymphony.xwork2.ActionContext@ACTION_NAME]

//are you sure you need that?

musachy

On 7/10/07, Gabriel Belingueres <be...@gmail.com> wrote:
>
> Hi,
>
> Which OGNL / JSTL expression could I use from a JSP page that will
> return the currently executed action's name?
>
> TIA,
> Gabriel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd