Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Say, why does Struts output “checked=checked” rather than something like “checked=true” or just “checked”?

checked output struts
0
Posted

Say, why does Struts output “checked=checked” rather than something like “checked=true” or just “checked”?

0

To retain XHMTL compatiblity, Struts outputs all properties in a “property=value” format. When doing this for properties that can be present or not (checked, nowrap, et al), the HTML 4.01 specification says to use the same token for the property and the value.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123