This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Help!" Watch "Help!" New topic
Author

Help!

Ashish Kothari
Ranch Hand

Joined: May 16, 2003
Posts: 37
I have two jsp pages, one page is submiting some data ,the problem is that how to save data in database as well as well show processed data on another jsp(I don't want to open conncetion on another jsp page).
should I use servlet between two jsp pages that saves data and forward request to second jsp.
Another approach is to use self referential form.
which approach would be better.
Or any new approach ? If so ,please suggest.
Ashish
Li Lung
Greenhorn

Joined: Jun 07, 2003
Posts: 2
do a forward after the 1st servlet finishes processing.
Amol Desai
Ranch Hand

Joined: Jan 29, 2003
Posts: 82
Hi,
As you had suggested, I think it would be better if would use servlet to process and store the data and forward the request to other jsp to display to processed data
Ashish Kothari
Ranch Hand

Joined: May 16, 2003
Posts: 37
Thanks,I have come thru another solution ,as I am not passing any data ,so why don't I use request.getRequestURI to know the name of the page and proceed according to it.
is this ok?
 
jQuery in Action, 2nd edition
 
subject: Help!