This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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....