unable to retrieve the passed value from jsp to controller using url via a button
问题 I am assigning href to a button and passing a value to the controller JSP page <td><a href="viewController?book_id=<%=vo.getBookId()%>"><input type="button" name="remove" value="DELETE"/></a> </td> In controller, I am trying to get the value when the button is clicked using: if(request.getParameter("remove") !=null) { int cart_id=(Integer)request.getSession(false).getAttribute("cartid"); b_id = (String) request.getParameter("book_id"); int bid=Integer.parseInt(b_id); System.out.println(bid);