Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Help needed to use the scope interceptor for a wizard

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 ?



Thanks for helping.

 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic