I am trying to implement a wizard form in Struts 2, using the SCOPE INTERCEPTOR.
That wizard is used to register a new user.
I have 3 pages :
In the first page, the user chooses a login and a password.
In the second page, the user enters his phone number, age, first name, name, fax.
In the third page, the user enters his adress details : country, street name, street number, post code.
There is one final action that is launched when the user clicks on SUBMIT in the third page.
This action should get all the information entered in the 3 pages and insert it into the database.
So far is what i have got :
First page : login.jsp
Second page : nouvUtilisateur.jsp
third page : nouvAdresse.jsp
Here is what i got in struts.xml :
As i commented out inside struts.xml, i am a bit lost with what i should put inside the interceptor-ref tag.
There is little documentation and samples about its use.
Do i need getters and setters in my action(s) for every attribute (fields in my pages) that i want to carry on until the final page ?
Also, what exactly are the advantages of the SCOPE interceptor ?