This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

S2 URL formatting  RSS feed

 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!