File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Displaying the right details of a resource taken from a JSP results page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Displaying the right details of a resource taken from a JSP results page" Watch "Displaying the right details of a resource taken from a JSP results page" New topic
Author

Displaying the right details of a resource taken from a JSP results page

John Turner
Greenhorn

Joined: Dec 19, 2010
Posts: 6
Hi all,

I am having a little problem in taking a list of search results that I generate from a JSP page, and when selecting the checkbox I want to view a particular resources result for, displays the wrong information. I can get the first result to be able to display the correct information on a particular resource, but when I want to view the second or third result, I get the first result resource information instead. I am not very good at explaining the situation, so I shall provide an example:

I search for Harry Potter books, this is sent to the server to obtain the search results and generates a page with the results. On the results page I have checkboxes beside each search result. I check the first and click on "view information", this generates a new page from the server, with all the details of the first search result - This part is fine.

However, if I perform my search again, and check the second search result, and generate a new page with the second search result's details, it just gives me the first results detailed information, and not the second result's detailed information - This part is the problem, and the same applies to the other search results.

So my question is why is it displaying the detailed information for the first search result, when I ask for the second search result's detailed information?
Here is my code:







Sorry for the long posting, but hopefully you can help me.
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
For the second time, did you check if the request actually reaches the server or it is just served from the browser cache?


Thanks and Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying the right details of a resource taken from a JSP results page