Browse Source

Ajout fichiers manquants

Daniel Le Berre 5 years ago
parent
commit
23bc3828a1
2 changed files with 35 additions and 0 deletions
  1. 19 0
      src/microfolie/Inscription.java
  2. 16 0
      src/struts.xml

+ 19 - 0
src/microfolie/Inscription.java

@@ -0,0 +1,19 @@
+package microfolie;
+
+import com.opensymphony.xwork2.ActionSupport;
+
+public class Inscription extends ActionSupport {
+
+	
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+
+	@Override
+	public String execute() throws Exception {
+		System.out.println("Vu!");
+		return SUCCESS;
+	}
+
+}

+ 16 - 0
src/struts.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE struts PUBLIC
+    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
+    "http://struts.apache.org/dtds/struts-2.0.dtd">
+<struts>
+    <constant name="struts.devMode" value="true" />
+    <constant name="struts.ui.theme" value="css_xhtml" />
+    <constant name="struts.custom.i18n.resources" value="microfolie" />
+    <constant name="struts.action.extension" value="ili" />
+    <package name="microfolie" extends="struts-default">
+        <action name="inscription" class="microfolie.Inscription">
+            <result name="success">/index.jsp</result>
+            <result name="input">/inscription.jsp</result>
+        </action>
+    </package>
+</struts>