File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Maintaining form data across pages...
Joined: Oct 07, 2001
May 16, 2004 03:59:00
I am trying to setup a series of
pages (requestForm, confrimation jsp).
I set the scope of my requestForm to "session" as to maintain the data across the various jsps, but I get it as if reset is called, after the confirmation page submits
What is the best way to maintain the request data across several jsp pages, speically I have lots of pages as step 1, step 2, step 3 before submiting the action, with different form beans.
Thanks, best regards
SCJP 1.2, SCBCD 5
Joined: Sep 21, 2003
May 16, 2004 23:32:00
Its a part of the framework that whenever u fire a request the reset method will be executed and then remaining things.........the default implemenattion of reset deosnt have anything
so if u wnat to maintain ur formdata across many pages ........keep that formbean in session scope and dont override that reset method .ie dont provode any implementation.........
i hope this will solve ur problem
Joined: Jul 04, 2003
May 17, 2004 20:46:00
u can use javabean + web session scope together
Java Developer, Thailand
Joined: May 11, 2004
May 17, 2004 22:31:00
You can associate the same for bean to the different action classes or you can extend the form beans of the other action classes with the form bean which you need in the others and make the scope of this form bean as session
I agree. Here's the link:
subject: Maintaining form data across pages...
JSP/form/servlet - session persistence ?
Maintain Data Across Errors
Maintaining form data across pages
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014