• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to maintain state between different pages in jsp

 
vishwajeet bhalerao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiii
I am doing online examination project in jsp.In one page there is one question and 5 options.If i click on next next question come.
And if i click on previous button then previous question should come.If i go next or previous then previously selected radio button does not appear as selected.So,there is big problem while calculating result.So,please give me a reply.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To make a checkbox or radio button selected add the checked attribute to the element.
 
vishwajeet bhalerao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you give me a example?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vishwajeet bhalerao wrote:can you give me a example?

you can get a lot from google
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An example of a checked checkbox:
 
Rinkit Shah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vishwajeet how are you using forward and back button functionalities can you show us. We are using history.back() for back button but it doesn't look ok with me

One more option we incorporated is reaattempt button but it would look nice if we can include forward button.

Waiting for your reply, Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic