lundi 13 avril 2015

Spring form commandName = session attribute

I have many pages with the same form where I bind my object using commandName. I try to put the object to session with name "myObject" and use it for form (commandName = "myObject"). But system throws exception (Neither BindingResult nor plain target object for bean name "myObject"). How can I bind the object to session for any controllers and requests?


Aucun commentaire:

Enregistrer un commentaire