Hi Matt,

My solution does seem to work for the few simple cases that I tried. The only overhead is that you have to create an empty main.action file in each directory that corresponds with an action url.

That suits my purposes quite well as, despite best practice recommendations, I don't want every page to go via struts. For the few that do, I add the file. I don't want any user-visible urls to have suffixes including (especially!) JSPs.

If I later want to add an action to a page that doesn't currently have one, I add the action to struts.xml and add the file to it's directory.

I can't see any downsides but, again, I ask - am I missing something really stupid?

--
Kevin

http://www.junitfactory.com
You send us code. We send back tests. For free.



mraible wrote:
I agree it would be nice if you could make totally clean URLs with Struts 2 -
as if you had each action registered as servlets in your web.xml.
Unfortunately, I don't believe it's possible. The only solution I can think
of is to use the UrlRewriteFilter.


[snip]


If someone has a more elegant solution, I'd love to hear about it.

Matt



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

Reply via email to