Answer the question
In order to leave comments, you need to log in
Java, how to insert a form into a form in jsp?
How to make 1 form send data for deletion and 2 form for addition. that is 1 form checkboxes and 2 select?
<form method="post" action="/user/deleteProductInCart">
<form method="post" action="/user/addOrder">
<c:forEach items="${productInCart}" var="productInCart">
<div class="container_news">
<div>Name: ${productInCart.nameProduct}</div>
<div>${productInCart.id}</div>
<div>Price: ${productInCart.price}</div>
<div class="">Description: ${productInCart.description}</div>
<div class="form-group">
<label for="quantity">Quantity: </label>
<select name="quantity" id="quantity" class="form-control" >
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
</div>
<div class="checkbox">
<label><input type="checkbox" value="${productInCart.id}" name="products"/>Check for
delete</label>
</div>
</div>
</c:forEach>
<button type="submit" class="btn btn-default">delete</button>
</form>
<button type="submit" class="btn btn-default">Add order</button>
</form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question