|
@@ -4,9 +4,13 @@ import java.util.Date;
|
|
|
|
|
|
import com.opensymphony.xwork2.ActionSupport;
|
|
|
|
|
|
+import microfolie.service.UsagerService;
|
|
|
+import microfolie.service.dto.UsagerDTO;
|
|
|
+
|
|
|
public class Inscription extends ActionSupport {
|
|
|
|
|
|
private static final long serialVersionUID = -8872053158311741161L;
|
|
|
+ private static final UsagerService service = UsagerService.getInstance();
|
|
|
|
|
|
private String nom;
|
|
|
private String prenom;
|
|
@@ -96,7 +100,8 @@ public class Inscription extends ActionSupport {
|
|
|
|
|
|
@Override
|
|
|
public String execute() throws Exception {
|
|
|
- System.out.println(nom + " " + prenom + " " + genre + " " + naissance);
|
|
|
+ UsagerDTO usager = new UsagerDTO(nom, prenom, genre, naissance, ville, situation, email, telephone, urgence);
|
|
|
+ service.add(usager);
|
|
|
return SUCCESS;
|
|
|
}
|
|
|
|