I am trying to create a web application in java. I am using servlets. I have come to the stage where the user enters a search query and receives a list of items which match his/her query. When the user gets a list of items which match, how can I make it possible for the user to click on an item and it opens a "show" servlet page and this takes the information regarding the item and displays them in this page?
I have tried the below code but this occurs before the list even appears:
onClick='openItemDetails(itemToGet.getId())' should be changed to onClick='openItemDetails(<%=itemToGet.getId()%>)'
Joined: Apr 06, 2009
do you know any good tutorials how to use servlets as controllers?
I'm sorry for my question - I'm still learning how to use everything
Joined: Apr 26, 2007
head first servlets and JSPs are my personal favourite....