Discovering Vraptor4
When working with Java for the web, there are many possible action-based MVC frameworks. VRaptor is one of those and it is opensource. Its 4th version is based on CDI 1.1 and offers high pr

When working with Java for the web, there are many possible action-based MVC frameworks. VRaptor is one of those and it is opensource. Its 4th version is based on CDI 1.1 and offers high productivity to your Web applications. This article will give you a brief overview of its integration.
- Create a maven web project;
- Edited your pom.xml file, to add Vraptor dependencies:
<dependency>
<groupId>br.com.caelum</groupId>
<artifactId>vraptor</artifactId>
<version>4.2.0-RC3</version>
</dependency>- Set up your controller.
All you need to do to get started with your first controller on VRaptor is annotate your class with @Controller, and the framework relies on its URL and JSP conventions to let you use as little configuration as possible. This is an example:
HelloController.java

index.jsp, your view located at: WEB-INF/jsp/hello/index.jsp

the Vraptor4 documentation, here docs
the source code of the helloVraptor project, here source