aspose file tools*
The moose likes JSP and the fly likes Multi page form handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Multi page form handling" Watch "Multi page form handling" New topic
Author

Multi page form handling

Bala Gangadhar
Ranch Hand

Joined: Oct 07, 2008
Posts: 82
    
    1
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

Joined: Jan 10, 2002
Posts: 61206
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bala Gangadhar
Ranch Hand

Joined: Oct 07, 2008
Posts: 82
    
    1
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

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Oct 07, 2008
Posts: 82
    
    1
We are discussing about navigation. Whether to use history object of javascript to navigate back and forth.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

I prefer to use explicit URLs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multi page form handling