File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes How to recreate a Query page using  jsp:usebean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to recreate a Query page using  jsp:usebean" Watch "How to recreate a Query page using  jsp:usebean" New topic

How to recreate a Query page using jsp:usebean

Dip Patel

Joined: Oct 03, 2001
Posts: 11
HI guys,
I have a jsp page which displays result in form of cases of a Case Query.Each case is linked to case details page.Case details page is an a HTML version of tabbed JSP page,which consists of many pages loading and unloading when clicking of different types of tabs takes place. Case details page has a link called " Back to Case Results", clicking on this user needs to go back to the Query Result page again.
Now I can not run Query again to get back to case results page as running query takes too long. Is there any way I could Display the case results page again without having to run Case Query again.
Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 260
what about storing the results in any way and keeping them linked to a session (f.e.) for the possible reviews?

Asher Tarnopolski
matt hooker
Ranch Hand

Joined: Jul 26, 2001
Posts: 46
Yeah - session is the way to go .. is it a result set you are getting back ? Or are you monkeying with this to return some other data-form - maybe an ArrayList or somesuch ... doesn't really matter. When you get the results back just do a session.setAttribute("results", your_result_data_object) be that a ResultSet Obj or whatever. Then you can grap the data out of this whenever you want to.

Its not what you do, its the way you say you've done it.
It is sorta covered in the JavaRanch Style Guide.
subject: How to recreate a Query page using jsp:usebean
It's not a secret anymore!