This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
After fixing that, the next step is back off your modifications and be sure not to use any scriptlets. I'm willing to bet that the book didn't mix the EL with scriptlets. And if it did, it certainly didn't embed EL expressions within scriptlets -- which is completely invalid.
Joined: Feb 04, 2010
This has no error:
How to improve it?
Now I need some code to process the checkbox.
Yes, that's the correct way to get the checked values. So what's the problem?
P.S. arg0? You couldn't come up with a better name for the request parameter than arg0?
The problem is none of these will pass an integer to the server.
The server receive "k" but not 1, 2, 3, ....
<td><input type="checkbox" name="choice" value="k">Acknowledge</td>
<td><input type="checkbox" name="choice" value="$k">Acknowledge</td>
<td><input type="checkbox" name="choice" value=k>Acknowledge</td>