Skip to content
Sexy URLs in VRaptor http://www.diegocarrion.com
Java Shell
Find file

README.textile

INSTALLATION

  • Get the latest version with:
git clone git://github.com/dcrec1/vraptor2_sexy_urls.git
  • If you’re using Maven, install in the local repository with:
mvn install
  • If you’re not using Maven, package the sources and take the jar from the target folder:
mvn package

CONFIGURATION

  • Write this in your web.xml file:
<filter>
    <filter-name>vraptor2</filter-name>
    <filter-class>org.vraptor.VRaptorFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>vraptor2</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
  • If you’re using Maven, you should add this dependency to your pom.xml:
<dependency>
    <groupId>org.vraptor</groupId>
    <artifactId>vraptor</artifactId>
    <version>2.6</version>
    <scope>compile</scope>
</dependency>

  • Name your controllers like UserController
  • Name your views like user/show.ok.ftl

LICENSE

(The MIT License)

Copyright© 2008 FIX

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.