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:
> (Sorry, I posted this once already under the wrong subject:
> Re: R: How to render html embedded in a text-area?)
> 
> 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]
> 
> ---------------------------------------------------------------------
> 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