struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perssy Llamosas <>
Subject Re: Don't expose .action to user?
Date Mon, 23 Jul 2007 15:03:20 GMT

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

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

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 <>
To: Struts Users Mailing List <>
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:
> For urls that will be handled by an action, add a file main.action to 
> the directory.
> Original post is here:
> Kevin
> 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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message