• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

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

Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For the second time, did you check if the request actually reaches the server or it is just served from the browser cache?
The knights of nee want a shrubbery. And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic