This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes search form showing previous results Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "search form showing previous results" Watch "search form showing previous results" New topic

search form showing previous results

ods gel

Joined: Oct 09, 2007
Posts: 8
I have written the following bean with method to find books:

and the following action mapping:

The search bar appears on the BooksIndex.jsp page - which is being filled when site it being loaded.
When I press the search button for a book, I can see that I get a list of books, but the page is not being reloaded.
What could be the problem?
John Melton
Ranch Hand

Joined: Aug 17, 2004
Posts: 49
odelya, It seems like it could be several different things. Can you post the full code of the BooksIndex.jsp and your action please?

Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
Is there a reason you're setting the scope to session?
ods gel

Joined: Oct 09, 2007
Posts: 8
Thanks for the reply.
A. What other scope could be valid? I need it for a user session. Or I should use something else?
It is sorta covered in the JavaRanch Style Guide.
subject: search form showing previous results