• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multi page form handling

 
Bala Gangadhar
Ranch Hand
Posts: 104
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
As part of my application i have to have a wizard like navigation where user enters different details in different pages..
and finally able to submit all the info by clicking the submit button on the last page. The user should able to navigate back and forth to any step in the navigation and the info already entered on that page should be seen and able to edit it.

What is the best way of handling this type of multp page forms.
Do we need to store all the values in a javabean and store the bean in session?
Do we need to code the jsp pages in such a way that if sesssion. getAttribute(bean).property != null then display value else
display "" for every text box?
I am using history.go(-1)" for navigating back ? is this correct way ?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either collect the values in the session, or store them in the pages using hidden elements.

I'd be more explicit about navigation that relying upon the JavaScript history.
 
Bala Gangadhar
Ranch Hand
Posts: 104
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd be more explicit about navigation that relying upon the JavaScript history.

Means dont you prefer to relay on javascript for navigation.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bala Gangadhar wrote:Means dont you prefer to relay on javascript for navigation.


yes . you dont relay on javascript. Bear already tells you the solution[session or hidden element]
 
Bala Gangadhar
Ranch Hand
Posts: 104
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are discussing about navigation. Whether to use history object of javascript to navigate back and forth.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I prefer to use explicit URLs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic