wood burning stoves
The moose likes Struts and the fly likes S2 URL formatting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "S2 URL formatting" Watch "S2 URL formatting" New topic

S2 URL formatting

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
Is it possible to S2 to map a custom URL to an action class? Ex. http://company.com/myapp/something/cool/here --> home.action ??

I'm not a huge fan of having to end all my URLs with .action.

David Newton

Joined: Sep 29, 2008
Posts: 12617

S2.1 sets the action suffix to ",.action" allowing blank ends. You can do the same thing yourself, although IIRC that has caused some issues with JS/CSS mapping. Or use the Convention and/or RESTful plugin.
I agree. Here's the link: http://aspose.com/file-tools
subject: S2 URL formatting
It's not a secret anymore!