This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
or how about this? <input type=checkbox checked=true onclick="this.checked=true;">
Joined: Mar 29, 2001
The checkbox is checked on certain conditions. Part of JSP is included. I am able to get proper value for isEditRequested. But, the getter for addrForMail returns null. I need to disallow user to uncheck the checkbox if isEditRequested is true and addForMail contains a value (in this case "Yes") Sorry about the cryptic code.
Within your jsp code, perform all of your logic required to determine whether or not: 1. the textbox is checked 2. the textbox should *remain* checked
Based on these results, use two variable (one for each condition above) with two possible values.
Simply output these variable between < %= % > tags in the main body of your HTML.. this eliminates the nasty looking code in the form.