Bonjour tout le monde
Je suis débutant en JEE en Spring et en GAE (je sais ca fait beaucoup mais
j'ai pas le choix malheuresement)
Je rencontre un problème depuis un certain moment.
J'ai créer mon aplication GAE qui marche très bien et j'en suis hyper
content.
J'ai essayé d'intégrer Spring 3 mais j'obtient toujours les même erreurs :
/panneauAdministration/popupAjoutMembre.jsp(8,2) Attribute modelAtribute
invalid for tag form according to TLD
ou encore ca :
No WebApplicationContext found: no ContextLoaderListener registered?
De plus je crois bien que le problème vient des formulaire spring. <form:form>
pourtant j'ai bien rajouté la taglib de spring
Voici ma jsp :
<div class="popup" id="ajoutMembre">
<h3>Ajout d'un membre</h3>
<span>Merci de renseigner les champs suivants</span>
<div id="Membre_formulaire">
<form:form modelAtribute="membres" action="membres"
method="post">
<fieldset>
<form:label for="nom" path="nom">Quel est votre
nom ?</form:label>
<form:input path="nom"/>
<br />
Mon controller :
@Controller
@RequestMapping("/membres")
public class AjoutMembreServlet{
@RequestMapping(method=RequestMethod.GET)
public ModelAndView getForm() {
ModelAndView mav = new ModelAndView();
mav.addObject(new Membres("",""));
mav.setViewName("ajoutMembresForm");
System.out.println("controller get");
return mav;
}
@RequestMapping(method=RequestMethod.POST)
public String ajouterMembre(@Validated Membres membre, BindingResult
result, Model model){
System.out.println("le controller");
log.info("ajout du membres : redirection vers
/panneauAdministration/membres.jsp");
return "redirect:/membres/"+membre.getNom();
}
Voila si quelqu'un peut m'aider ou m'orienter merci beaucoup
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/0o76MrjIEpMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.