Skip to content Skip to sidebar Skip to footer

Is It Possible To Use URL Parameters With MySQL/JSP?

My code: This code first creates a table. The table is then populated with data from mySQL database. My problem is at the last bit with the ahref. When you click buy it will take t

Solution 1:

you can use the scriplet

<%
 String itemCode = request.getParamenter("item_code");
%>

<sql: query var="result">
 select item__stock_count from inventory
 where item_code="${itemCode}"
</sql:query> 

Post a Comment for "Is It Possible To Use URL Parameters With MySQL/JSP?"