You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by e-denton Java Programmer <ja...@e-denton.com> on 2004/08/04 05:49:48 UTC
Please .dont
(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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Roller as Struts Module
Posted by e-denton Java Programmer <ja...@e-denton.com>.
I only have a single context at my ISP, and I want to use Roller Weblogger
(http://www.rollerweblogger.org/page/project). Would it be practical to make
it a module? Any tips or comments appreciated.
I haven't found many useful module examples on the Web.
Thx.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Please .dont
Posted by e-denton Java Programmer <ja...@e-denton.com>.
Thanks, Kishore, but that will give me the form name. I want the Action path
sans ".do".
----- Original Message -----
From: "Kishore Senji" <ks...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>; "e-denton Java
Programmer" <ja...@e-denton.com>
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
> <ja...@e-denton.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Please .dont
Posted by Kishore Senji <ks...@gmail.com>.
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
<ja...@e-denton.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org