Thanks, Kishore, but that will give me the form name. I want the Action path sans ".do".
----- Original Message ----- From: "Kishore Senji" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton Java Programmer" <[EMAIL PROTECTED]> Sent: Wednesday, August 04, 2004 10:08 AM Subject: Re: Please .dont > mapping.findForward returns a ForwardConfig and not ActionConfig. If > you want /banner and not /banner.do, Use > RequestUtils.getActionMappingName(action). > > On Tue, 3 Aug 2004 22:49:48 -0500, e-denton Java Programmer > <[EMAIL PROTECTED]> wrote: > > > > According to the Struts API: > > > > ActionConfig.getPath() > > Return context-relative path of the submitted request, starting > > with a slash ("/") character, and omitting any filename extension if > > extension mapping is being used. > > > > But, > > > > System.err.println > > (mapping.findForward(Constants.FORWARD_BANNER).getPath()); > > System.err.println (mapping.getPath() ); > > > > prints: > > > > /banner.do > > /offsite > > > > I am expecting "/banner" not "/banner.do". I am using extension mapping. Am > > I missing the point? How should I get "/banner" from > > Constants.FORWARD_BANNER? > > > > Thx. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]