struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanl...@gmail.com
Subject Re: Handling wildcard action names with dot.
Date Tue, 01 Mar 2011 14:24:44 GMT
I haven't looked at this for some time, but open up DefaultActionMapper and
have a look.  You can always substitute your own implementation if the
outta-the-box is not what you are looking for.

Peace,
Scott

On Tue, Mar 1, 2011 at 7:59 AM, GF <ganfab@gmail.com> wrote:

> I configured struts to handle url mapping with no extensions this way
>
> <constant name="struts.action.extension" value=",," />
>
> With this action mapping
>        <action name="*" class="myAction" method="myMethod">
>                <param name="myId">{1}</param>
>            <result type="tiles">myTile</result>
>        </action>
>
> I can handle urls like:
>
> /aaa/bbb/ccc
> /aaa/bbb/ddd
> /aaa/bbb/eee
>
> But i wish to handle this kind of urls too:
>
> /aaa/bbb/fff.xyz
> /aaa/bbb/fff.jkw
> /aaa/bbb/fff.anykindofextension
>
> But when i insert a DOT in the action name (mapped by a wildcard) I
> get a 404 error.
>
>
> Any idea?
>
> Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message