You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chandra Gottipati <cg...@algx.net> on 2002/07/13 00:48:50 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Checkbox Issue

Posted by Joseph Barefoot <jo...@hereuare.com>.
This begs the question:  Why don't you set the check box property itself in
your form bean and use <html:checkbox> rather than setting a session
variable to check for?


> -----Original Message-----
> From: Jacob Hookom [mailto:hookomjj@uwec.edu]
> Sent: Friday, July 12, 2002 4:10 PM
> To: 'Struts Users Mailing List'; 'Chandra Gottipati'
> Subject: RE: Checkbox Issue
>
>
> <% 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:cgottipati@algx.net]
> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
> ---
> 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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Checkbox Issue

Posted by Jacob Hookom <ho...@uwec.edu>.
<% 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:cgottipati@algx.net] 
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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

---
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>