<% if ( session.getAttribute("key") == null ) { %> <input type="checkbox" name="variable" value="true"> <% } else { %> <input type="checkbox" name="variable" value="true" checked> <% } %>
-----Original Message----- From: Chandra Gottipati [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 5:49 PM To: Struts Users Mailing List Subject: Checkbox Issue Is there a way to set the check box to "checked", before displaying the jsp based on a value retrieved from a session variable. I am setting this session variable before displaying the jsp in the action object. Thanks. Chandra. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>