You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Saeed Iqbal <sa...@gmail.com> on 2010/03/11 08:39:06 UTC

Catching url for action not defined

Hi Guys

How would I do http://localhost/some_name

where some_name is a random name and not defined as an action in struts.xml

I would like your input on this please.

Thanks,
-saeed

-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Re: Catching url for action not defined

Posted by abhishek jain <ab...@gmail.com>.
Hi,
urlrewrite.xml did worked for me,
thanks
abhishek

On Thu, Mar 11, 2010 at 7:17 PM, Brian Thompson <el...@gmail.com>wrote:

> Wildcard mapping should do the trick.  See [1].
>
> -Brian
>
> [1] -
> http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-WildcardMethod
>
>
>
> On Thu, Mar 11, 2010 at 1:39 AM, Saeed Iqbal <sa...@gmail.com> wrote:
> > Hi Guys
> >
> > How would I do http://localhost/some_name
> >
> > where some_name is a random name and not defined as an action in
> struts.xml
> >
> > I would like your input on this please.
> >
> > Thanks,
> > -saeed
> >
> > --
> > Saeed Iqbal
> > Independant Consultant
> > J2EE - Application Architect / Developer
> >
>
>  ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Catching url for action not defined

Posted by Brian Thompson <el...@gmail.com>.
Wildcard mapping should do the trick.  See [1].

-Brian

[1] - http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-WildcardMethod



On Thu, Mar 11, 2010 at 1:39 AM, Saeed Iqbal <sa...@gmail.com> wrote:
> Hi Guys
>
> How would I do http://localhost/some_name
>
> where some_name is a random name and not defined as an action in struts.xml
>
> I would like your input on this please.
>
> Thanks,
> -saeed
>
> --
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org