Two Laptop Bag*
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
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help!