Can't seem to find any good guides on how to do this directly on Google/Youtube. Basically I have a list of products (code):

<sql:query var="result"> select * from inventory; </sql:query> <table border="1" width="100%"> <tr> <th>Code</th> <th>Author</th> <th>Description</th> <th>Other field(Probs price)</th> <th>Item Stock</th> <th>Order Stock</th> <th>Buy option </th> </tr> <c:forEach var = "row" items = "${result.rows}"> <tr> <td><c:out value = "${row.item_code}"/></td> <td><c:out value = "${row.item_author}"/></td> <td><c:out value = "${row.item_description}"/></td> <td><c:out value = "${row.item_price}"/></td> <td><c:out value = "${row.item__stock_count}"/></td> <td><c:out value = "${row.item_order_count}"/></td> <td><a href="shoppingbasket.jsp">Order Now!</a></td> </tr> </c:forEach> </table> </div>

The layout looks like this:

Code Author Description Price Item Stock Buy Stock Buy Option

It is connected to mySQL databse. So obviously under all these headers is information. Under the "Buy Option" Has Buy on every row.

What I want to do is when I click buy on one row. It will get the item Code for that specific row and will Post the item on the page shoppingbasket.jsp.

Any ideas how I can do this?