my dog learned polymorphism*
The moose likes JSF and the fly likes Keeping track of question number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Keeping track of question number" Watch "Keeping track of question number" New topic
Author

Keeping track of question number

tom davies
Ranch Hand

Joined: Apr 27, 2012
Posts: 168
I am creating an e-learning site, the user will have a series of 20 questions, i have the questions to automatically update when the the next button is clicked but i have a line at the top saying what question you are on. This wont update. I have a feeling it is not storing the page value but is just initializing it at 0 and then adding 1 every time the next button is clicked.

FIXED: I changed @RequestScoped to @SessionScoped
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Keeping track of question number
 
Similar Threads
Simple redirect not working
JDBC
visual J++ and retreiving rows from sql server
Type-IV Driver with servlet
Data source name not found and no default driver specified