Craig,
We should consider adding an id attribute once Struts requires a jsp 1.2 container. I'm not sure if/when that will be but there seems to be lots of confusion on this.

David






From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Nice labels for inputs.
Date: Tue, 29 Oct 2002 14:20:25 -0800 (PST)



On Tue, 29 Oct 2002, Josh Berry wrote:

>
> Is there any reason that "id" is not allowed on the struts input tags? Does
> anyone else see the benefit? I know it sounds asinine, but that is one the
> often unused standard tags that I wish received more use.
>

Yes, there is a reason.

In JSP 1.1 the "id" attribute on custom tags is reserved. This
restriction was relaxed in JSP 1.2, but that doesn't help a Struts user
who is using a 1.1 container.

To compensate for this restriction, the "styleId" attribute is available
on many struts-html tags, and renders an "id" attribute on the
corresponding HTML element.

> -josh

Craig

PS: A casual search of any of the mailing list archives would have
uncovered lots of variations on this same question, with the same answer.
Pointers are on the Struts web site <http://jakarta.apache.org/struts/>.



--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

_________________________________________________________________
Broadband?�Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to