Hi, all.
I'm using Sitemesh decorators on my Struts2 project to create a generic
header menu. However, I'd like to use a CSS class to highlight the menu
item for where the user currently is. Is there a good way to get the
current action name and namespace just with JSP code? I know I can get
it
#action will give you a reference to the last executed action.
musachy
On Mon, May 12, 2008 at 12:10 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
Hi, all.
I'm using Sitemesh decorators on my Struts2 project to create a generic
header menu. However, I'd like to use a CSS class to highlight
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, May 12, 2008 12:45 PM
To: Struts Users Mailing List
Subject: Re: [s2] Getting the current Action name in a JSP?
#action will give you a reference to the last executed action.
musachy
On Mon, May 12, 2008
Subject: Re: [s2] Getting the current Action name in a JSP?
#action will give you a reference to the last executed action.
musachy
On Mon, May 12, 2008 at 12:10 PM, Allen, Daniel [EMAIL PROTECTED]
wrote:
Hi, all.
I'm using Sitemesh decorators on my Struts2 project to create
So that's what #action gets? That's really useful, thanks!
~DVA
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, May 12, 2008 1:52 PM
To: Struts Users Mailing List
Subject: Re: [s2] Getting the current Action name in a JSP?
Under struts.actionMapping
:[EMAIL PROTECTED]
Sent: Monday, May 12, 2008 1:52 PM
To: Struts Users Mailing List
Subject: Re: [s2] Getting the current Action name in a JSP?
Under struts.actionMapping there will be an object of type
org.apache.struts2.dispatcher.mapper.ActionMapping with fields:
extension, name, namespace
Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, May 12, 2008 12:45 PM
To: Struts Users Mailing List
Subject: Re: [s2] Getting the current Action name in a JSP?
#action will give you a reference to the last executed action.
musachy
Subject: Re: [s2] Getting the current Action name in a JSP?
%{#struts.actionMapping} -Action Mapping
%{#action} - Last executed action
musachy
On Mon, May 12, 2008 at 3:05 PM, Dave Newton [EMAIL PROTECTED]
wrote:
--- Allen, Daniel [EMAIL PROTECTED] wrote:
So that's what #action gets? That's really
:07 PM
To: Struts Users Mailing List
Subject: Re: [s2] Getting the current Action name in a JSP?
%{#struts.actionMapping} -Action Mapping
%{#action} - Last executed action
musachy
On Mon, May 12, 2008 at 3:05 PM, Dave Newton [EMAIL PROTECTED]
wrote:
--- Allen, Daniel [EMAIL
Oh, ok. I was just in the middle of poking around the debug info to see
why that wasn't working.
Thanks,
~DVA
-Original Message-
From: Allen, Daniel
Sent: Monday, May 12, 2008 3:11 PM
To: Struts Users Mailing List
Subject: RE: [s2] Getting the current Action name in a JSP?
Ok, thanks
, 2008 3:11 PM
| To: Struts Users Mailing List
| Subject: RE: [s2] Getting the current Action name in a JSP?
|
| Ok, thanks for the clarification.
|
| What is the Java type of #struts? I'd like to take a look at the docs to
| see what else I can get out of that.
|
| ~DVA
|
| -Original Message
11 matches
Mail list logo