Hi j.koizumi,
Try this code, I tested it and it works, it is basically the same thing
but written a bit differently. I think that too many double quotes inside
your input tag is blowing your code :
<display:table name="tableData">
<display:column property="column1" title="ID"/>
<display:column title="status">
<c:if test="${ row.column2 == 1 }">
<input type="checkbox" name="status${row.column1}" value="1" checked>
</c:if>
<c:if test="${ row.column2 ne 1 }">
<input type="checkbox" name="status${row.column1}" value="1">
</c:if>
</display:column>
</display:table>
HTH
Avinash
-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 7:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [displaytag-user] Checkbox
Did you add a taglib declaration for the JSTL core tags?
On May 3, 2004, at 5:21 PM, Jun Koizumi wrote:
> Hi,
>
> I try to write checkbox with displaytag, but error occurred. Please
> someone correct.
>
> Table data
> column1 ID numeric,
> colunm2 status 0 or 1,
>
> I tried
>
> <display:table name="tableData">
> <display:column property="column1" title="ID"/> <display:column
> title="status">
> <input type="checkbox" name="status<c:out value="${row.column1}"/>"
> value="1" <c:if test="${row.column2==1}">checked</c:if>>
> </display:column>
> </display:table>
>
> The error messages said can not load class if.
>
> Thank you.
>
> j.koizumi
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle
> 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> displaytag-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user