Permalink
Browse files

Configuração inicial do projeto com VRaptor.

  • Loading branch information...
1 parent bba83e1 commit 73fc71d97da17dacd5e46cfef31461fef2a93fc5 renanigt committed Jan 28, 2011
Showing with 115 additions and 0 deletions.
  1. +13 −0 WebContent/WEB-INF/jsp/index/index.jsp
  2. BIN WebContent/WEB-INF/lib/aopalliance.jar
  3. BIN WebContent/WEB-INF/lib/aspectjrt.jar
  4. BIN WebContent/WEB-INF/lib/cglib-nodep-2.1_3.jar
  5. BIN WebContent/WEB-INF/lib/commons-collections-3.2.1.jar
  6. BIN WebContent/WEB-INF/lib/commons-logging.jar
  7. BIN WebContent/WEB-INF/lib/guava-r07.jar
  8. BIN WebContent/WEB-INF/lib/javassist-3.9.0.GA.jar
  9. BIN WebContent/WEB-INF/lib/jstl-api-1.2.jar
  10. BIN WebContent/WEB-INF/lib/jstl-impl-1.2.jar
  11. BIN WebContent/WEB-INF/lib/log4j-1.2.15.jar
  12. BIN WebContent/WEB-INF/lib/mirror-1.5.1.jar
  13. BIN WebContent/WEB-INF/lib/objenesis-1.1.jar
  14. BIN WebContent/WEB-INF/lib/ognl-2.7.3.jar
  15. BIN WebContent/WEB-INF/lib/org.springframework.aop-3.0.2.RELEASE.jar
  16. BIN WebContent/WEB-INF/lib/org.springframework.asm-3.0.2.RELEASE.jar
  17. BIN WebContent/WEB-INF/lib/org.springframework.aspects-3.0.2.RELEASE.jar
  18. BIN WebContent/WEB-INF/lib/org.springframework.beans-3.0.2.RELEASE.jar
  19. BIN WebContent/WEB-INF/lib/org.springframework.context-3.0.2.RELEASE.jar
  20. BIN WebContent/WEB-INF/lib/org.springframework.core-3.0.2.RELEASE.jar
  21. BIN WebContent/WEB-INF/lib/org.springframework.expression-3.0.2.RELEASE.jar
  22. BIN WebContent/WEB-INF/lib/org.springframework.jdbc-3.0.2.RELEASE.jar
  23. BIN WebContent/WEB-INF/lib/org.springframework.orm-3.0.2.RELEASE.jar
  24. BIN WebContent/WEB-INF/lib/org.springframework.transaction-3.0.2.RELEASE.jar
  25. BIN WebContent/WEB-INF/lib/org.springframework.web-3.0.2.RELEASE.jar
  26. BIN WebContent/WEB-INF/lib/paranamer-2.2.jar
  27. BIN WebContent/WEB-INF/lib/slf4j-api-1.6.1.jar
  28. BIN WebContent/WEB-INF/lib/slf4j-log4j12-1.6.1.jar
  29. BIN WebContent/WEB-INF/lib/vraptor-3.2.0.jar
  30. BIN WebContent/WEB-INF/lib/xstream-1.3.1.jar
  31. +13 −0 WebContent/WEB-INF/web.xml
  32. BIN build/classes/br/com/mypaint/controller/IndexController.class
  33. +32 −0 build/classes/log4j.xml
  34. +25 −0 src/br/com/mypaint/controller/IndexController.java
  35. +32 −0 src/log4j.xml
@@ -0,0 +1,13 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Insert title here</title>
+</head>
+<body>
+ ${vraptor}
+</body>
+</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -9,4 +9,17 @@
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
+
+ <filter>
+ <filter-name>vraptor</filter-name>
+ <filter-class>br.com.caelum.vraptor.VRaptor</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>vraptor</filter-name>
+ <url-pattern>/*</url-pattern>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ </filter-mapping>
+
</web-app>
Binary file not shown.
View
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{HH:mm:ss,SSS} %5p [%-20c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <category name="org.vraptor">
+ <priority value="INFO" />
+ <appender-ref ref="stdout" />
+ </category>
+
+ <category name="com.thoughtworks">
+ <priority value="INFO" />
+ <appender-ref ref="stdout" />
+ </category>
+
+ <category name="br.com.caelum.vraptor">
+ <priority value="DEBUG" />
+ <appender-ref ref="stdout" />
+ </category>
+
+ <category name="org.springframework">
+ <priority value="INFO" />
+ <appender-ref ref="stdout" />
+ </category>
+
+</log4j:configuration>
@@ -0,0 +1,25 @@
+package br.com.mypaint.controller;
+
+import br.com.caelum.vraptor.Path;
+import br.com.caelum.vraptor.Resource;
+import br.com.caelum.vraptor.Result;
+import br.com.caelum.vraptor.Validator;
+
+@Resource
+public class IndexController {
+
+ private final Result result;
+
+ private Validator validator;
+
+ public IndexController(Result result, Validator validator) {
+ this.result = result;
+ this.validator = validator;
+ }
+
+ @Path("/")
+ public void index() {
+ result.include("vraptor", "VRaptor is working...");
+ }
+
+}
View
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{HH:mm:ss,SSS} %5p [%-20c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <category name="org.vraptor">
+ <priority value="INFO" />
+ <appender-ref ref="stdout" />
+ </category>
+
+ <category name="com.thoughtworks">
+ <priority value="INFO" />
+ <appender-ref ref="stdout" />
+ </category>
+
+ <category name="br.com.caelum.vraptor">
+ <priority value="DEBUG" />
+ <appender-ref ref="stdout" />
+ </category>
+
+ <category name="org.springframework">
+ <priority value="INFO" />
+ <appender-ref ref="stdout" />
+ </category>
+
+</log4j:configuration>

0 comments on commit 73fc71d

Please sign in to comment.