On Tue, 9 Jul 2002, Struts Newsgroup wrote:
> > http://jakarta.apache.org/struts/userGuide/struts-html.html#form
> >
> > That you can use styleClass and styleId attributes to render "class=" and
> > "id=" respectively.
> Thanks. But why not simple "class" and "id"?
>
In JSP 1.1, "id" is a reserved attribute name, so we couldn't use it.
(This got relaxed in JSP 1.2, but we need to maintain 1.1 compatibility).
For "class", the problem is that java.lang.Object already defines a
getClass() method (to return the Class corresponding to this object
instance), and you can't override getClass().
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>