Martin:

That did the trick!

FYI, if anyone needs the answer, here is what I did:

  ConfigHelper configHelper = new
ConfigHelper(application,request,response);
  ActionMapping mapping = configHelper.getMapping();
  String currentAction = mapping.getPath()+".do";

Thanks,
        Neil


--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -----Original Message-----
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, June 18, 2005 10:38 PM
> To: Struts Users Mailing List
> Subject: Re: How to get current top-level struts action?
> 
> 
> Neil-
> 
> configHelperInterface should help you with iwther getMapping or 
> getActionForward methods should help you-
> http://struts.apache.org/api/org/apache/struts/config/ConfigHe
> lperInterface.html
> 
> Martin-
> 
> ----- Original Message ----- 
> From: "Neil Aggarwal" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[email protected]>
> Sent: Saturday, June 18, 2005 7:03 PM
> Subject: How to get current top-level struts action?
> 
> 
> > Hello:
> >
> > I am trying to figure out how to get the current top-level struts
> > action in a page.
> >
> > For example, if I am on the url
> > http://dev.rentclubs.com/rentclubs/home.do
> >
> > I want a programmatic way to get that the action is "/home"
> >
> > I tried getting the requestURI, but that give me the layout
> > since I am using tiles.
> >
> > I have tried browsing the struts API and searching the web
> > to no avail.
> >
> > Thanks,
> > Neil
> >
> >
> > --
> > Neil Aggarwal, JAMM Consulting, (214) 986-3533, 
> www.JAMMConsulting.com
> > FREE! Valuable info on how your business can reduce 
> operating costs by
> > 17% or more in 6 months or less! 
> http://newsletter.JAMMConsulting.com
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to