Try it with the action extension configured to an empty string, and
see what happens.

On 7/23/07, Perssy Llamosas <[EMAIL PROTECTED]> wrote:
Well...

How would you handle a situation that requires you to use an action with
slashes?
<action name="show/*" class="org.beyond.TestAction"  method="{1}" />

Or even better, action with parameters in their uri. "show/{1}/{2}" ex:
"show/book/43"

It has its downfalls. I don't see myself creating hundreds of folders
and .action files. I wanted to use the restful mapper for RESTful URLs.

Perssy Llamosas

-------- Original Message --------
Subject: Re:Don't expose .action to user?
From: Kevin Lawrence <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Date: 20/07/2007 11:06 a.m.
> I have a solution that seems to work. Feedback on whether it is a good
> solution or rather, why it is not, would be wonderful.
>
>
> Executive summary:
>  map *.action to struts filter
>  add main.action as the first entry in web.xml's welcome list
>
> Have all user-visible urls look like directories:
>
>   http://www.junitfactory.com/demo
>
> For urls that will be handled by an action, add a file main.action to
> the directory.
>
> Original post is here:
> http://www.mail-archive.com/user%40struts.apache.org/msg63838.html
>
> Kevin
>
> http://www.junitfactory.com
> You send us code. We send back tests. For free.
>
> Perssy Llamosas wrote:
>> You can't get rid of the ".action", at least in my tests I have not
>> being able to map a clean url without the ".action". Even the
>> Restful2ActionMapper requires a .action at the end.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to