Commit a02c653304e96c6d4a99094561d6cd0eef91585e

Authored by lyandro.santana
1 parent 29923120

Tarefa - 417. Solicitar Contato.

git-svn-id: https://svn.bento.ifrs.edu.br/default/ASES/ASES%20-%20Web/ASES%20-%20Web/Fontes/avaliador-web@9260 c2178572-b5ca-4887-91d2-9e3a90c7d55b
.classpath
... ... @@ -28,5 +28,6 @@
28 28 <attribute name="maven.pomderived" value="true"/>
29 29 </attributes>
30 30 </classpathentry>
  31 + <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"/>
31 32 <classpathentry kind="output" path="target/classes"/>
32 33 </classpath>
... ...
.settings/org.eclipse.wst.common.component
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<project-modules id="moduleCoreId" project-version="1.5.0">
  1 +<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
3 2 <wb-module deploy-name="ases">
4 3 <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
5 4 <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
6 5 <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
7 6 <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
8   - <dependent-module archiveName="emag-checker-1.0.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/emag-checker/emag-checker">
9   - <dependency-type>uses</dependency-type>
10   - </dependent-module>
11 7 <property name="context-root" value="ases"/>
12 8 <property name="java-output-path" value="/ases/target/classes"/>
13 9 </wb-module>
... ...
pom.xml
... ... @@ -38,6 +38,12 @@
38 38 <artifactId>commons-fileupload</artifactId>
39 39 <version>1.3</version>
40 40 </dependency>
  41 +
  42 + <dependency>
  43 + <groupId>commons-email</groupId>
  44 + <artifactId>commons-email</artifactId>
  45 + <version>1.3.2</version>
  46 + </dependency>
41 47  
42 48 <dependency>
43 49 <groupId>jstl</groupId>
... ... @@ -46,6 +52,12 @@
46 52 </dependency>
47 53  
48 54 <dependency>
  55 + <groupId>javaxmail</groupId>
  56 + <artifactId>javaxmail</artifactId>
  57 + <version>1.0</version>
  58 + </dependency>
  59 +
  60 + <dependency>
49 61 <groupId>br.com.checker.emag</groupId>
50 62 <artifactId>emag-checker</artifactId>
51 63 <version>1.0</version>
... ...
src/main/webapp/WEB-INF/jsp/contato/index.jsp
... ... @@ -9,10 +9,19 @@
9 9 <h2 class="outstanding-title">Contato</h2>
10 10 </div>
11 11 </div>
  12 + <c:if test="${not empty mensagem}">
  13 + <div id="mensagem">
  14 + <div class="${status}"> <div class="alinName">${mensagem}</div></div>
  15 + </div>
  16 + </c:if>
  17 +
12 18 <c:forEach var="error" items="${errors}">
13 19 <%-- <div class=" ${error.category}"> ${error.message}</div><br/> --%>
14 20 <div class="${error.category}"> <div class="alinName">${error.message}</div></div>
15 21 </c:forEach>
  22 +
  23 +
  24 +
16 25 <form method="post" action="${pageContext.request.contextPath}/contato/confirmacao">
17 26 <fieldset>
18 27 <legend>Formulário de Contato</legend>
... ...
target/m2e-wtp/web-resources/META-INF/MANIFEST.MF 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +Manifest-Version: 1.0
  2 +Built-By: lyandro
  3 +Build-Jdk: 1.7.0_51
  4 +Created-By: Maven Integration for Eclipse
  5 +
... ...
target/m2e-wtp/web-resources/META-INF/maven/br.com.ases/ases/pom.properties
1 1 #Generated by Maven Integration for Eclipse
2   -#Sun Mar 30 19:06:03 BRT 2014
  2 +#Wed Apr 16 03:18:29 BRT 2014
3 3 version=1.0
4 4 groupId=br.com.ases
5 5 m2e.projectName=ases
6   -m2e.projectLocation=/Users/rodrigolima/workspace2/ases
  6 +m2e.projectLocation=/home/lyandro/workspace/ases
7 7 artifactId=ases
... ...
target/m2e-wtp/web-resources/META-INF/maven/br.com.ases/ases/pom.xml
... ... @@ -6,6 +6,7 @@
6 6 <packaging>war</packaging>
7 7 <version>1.0</version>
8 8 <name>Ases Webapp</name>
  9 +
9 10 <url>http://maven.apache.org</url>
10 11 <dependencies>
11 12 <dependency>
... ... @@ -37,13 +38,25 @@
37 38 <artifactId>commons-fileupload</artifactId>
38 39 <version>1.3</version>
39 40 </dependency>
  41 +
  42 + <dependency>
  43 + <groupId>commons-email</groupId>
  44 + <artifactId>commons-email</artifactId>
  45 + <version>1.3.2</version>
  46 + </dependency>
40 47  
41 48 <dependency>
42 49 <groupId>jstl</groupId>
43 50 <artifactId>jstl</artifactId>
44 51 <version>1.2</version>
45 52 </dependency>
46   -
  53 +
  54 + <dependency>
  55 + <groupId>javaxmail</groupId>
  56 + <artifactId>javaxmail</artifactId>
  57 + <version>1.0</version>
  58 + </dependency>
  59 +
47 60 <dependency>
48 61 <groupId>br.com.checker.emag</groupId>
49 62 <artifactId>emag-checker</artifactId>
... ...