You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Muralidhar Y <mu...@kensium.com> on 2008/08/18 11:11:55 UTC

problem with checkbox

Hi , when I typed the code in my jsp like the following
 
<s:checkbox  name="searchedPoP%{#stat.index}" value="one" />
 
In the html file the following code is being shown. By default the attribute
value is being true. Instead I want to give some other value. Kindly help.
 
<input type="checkbox" name="searchedPoP0" value="true"
id="addPalettePoP_searchedPoP0"/>

 

 

Warm regards,

Muralidhar Y

muralidhary@kensium.com

 

US Main: 877 KENSIUM (536.7486)
India Main:  +91 9949495511

India Fax:   +91 9949495522

Kensium

200 S Wacker Dr, Suite 3100

Chicago, IL 60606

 

 

Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.

 

  _____  

 


RE: problem with checkbox

Posted by Muralidhar Y <mu...@kensium.com>.
Thank you.

Warm regards,
Muralidhar Y
muralidhary@kensium.com
 
US Main: 877 KENSIUM (536.7486)
India Main:  +91 9949495511
India Fax:   +91 9949495522
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
 
 
Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.
 
________________________________

 

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Monday, August 18, 2008 4:08 PM
To: Struts Users Mailing List
Subject: Re: problem with checkbox

--- On Mon, 8/18/08, Muralidhar Y wrote:
> Hi , when I typed the code in my jsp like the following
>  
> <s:checkbox  name="searchedPoP%{#stat.index}"
>              value="one" />
>  
> In the html file the following code is being shown. By
> default the attribute value is being true. Instead I want 
> to give some other value. Kindly help.
>  
> <input type="checkbox" name="searchedPoP0" value="true"
>        id="addPalettePoP_searchedPoP0"/>

Do you have an action property named "one"? Value attributes are objects,
not strings:

http://struts.apache.org/2.x/docs/tag-syntax.html

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: problem with checkbox

Posted by Dave Newton <ne...@yahoo.com>.
--- On Mon, 8/18/08, Muralidhar Y wrote:
> Hi , when I typed the code in my jsp like the following
>  
> <s:checkbox  name="searchedPoP%{#stat.index}"
>              value="one" />
>  
> In the html file the following code is being shown. By
> default the attribute value is being true. Instead I want 
> to give some other value. Kindly help.
>  
> <input type="checkbox" name="searchedPoP0" value="true"
>        id="addPalettePoP_searchedPoP0"/>

Do you have an action property named "one"? Value attributes are objects, not strings:

http://struts.apache.org/2.x/docs/tag-syntax.html

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org