You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chandrakant <ch...@patni.com> on 2007/04/20 11:12:34 UTC

html:checkbox value show object refrence

Hi All,

I created action form which contains List holding Id and name fields.
In JSP I use 
  <c:forEach var="annuitType" items="${loginformbean.annuitType}"
varStatus="count">
	  <html:checkbox property="annuitType" value="<c:out
value='${annuitType.annuitid}'></c:out>"></html:checkbox>
  </c:forEach>

When I see the source page the output is like 

	  <input type="checkbox" name="annuitType" value="<c:out
value='${annuitType.annuitid}'></c:out>">
	  <input type="checkbox" name="annuitType" value="<c:out
value='${annuitType.annuitid}'/>">

In value I get refrence.

If I use normal <input type="checkbox"

Then value is properly decoded 

Regards 

Chandrakant Mardhekar

http://www.patni.com
World-Wide Partnerships. World-Class Solutions. 
_____________________________________________________________________ 

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to whom this
message was originally addressed. Any review, e-transmission dissemination
or other use of or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If you
have received this e-mail in error kindly delete this e-mail from your
records. If it appears that this mail has been forwarded to you without
proper authority, please notify us immediately at netadmin@patni.com and
delete this mail.  



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


Re: html:checkbox value show object refrence

Posted by Dave Newton <ne...@yahoo.com>.
--- Chandrakant wrote:
> <html:checkbox property="annuitType"
>     value="<c:out
>              value='${annuitType.annuitid}'>
>            </c:out>">
> </html:checkbox>

You can't nest tags like that.

Depending on what version of servlet/jsp your
container supports you can either use JSP EL directly
or the struts-el tags.

d.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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