addBook.jsp
<display:table name="books" excludedParams="*" pagesize="25" class="table" export="false" sort="external" id="book" requestURI="">
<display:column title="#">
<input type="checkbox" name="book" value="${book.Id}"/>
</display:column>
<display:column title="bookName" style="width: 100%" >
<c:out value="${book.name}"/>
</display:column>
<display:column title="bookDiscount" style="width: 100%" >
<html:text property="discount"styleId="discount"/>
</display:column>
</display:table>
bookAction.java
String[] percentage = request.getParameterValues("discount");
String[] cardTypeId = request.getParameterValues("book");
If I check a checkbox , I want to get that checked checkbox discount value using java in action class, so i can add the value in database. I have tried but not working. Could someone help me?