The html:select tag has the onclick attribute, not the html:form tag. And
you got to take care with the case, it�s "onclick" and not "onClick" (and I
wonder why this, against JLS and not like the other attributes)


 Joao Guilherme Del Valle
 [EMAIL PROTECTED]
 Visionnaire Inform�tica SA
 http://www.visionnaire.com.br
 Tel/Fax: +55 41 373-7400 r: 221
 Curitiba / PR / Brasil
----- Original Message -----
From: "bjoern blum" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 11:07 AM
Subject: AW: Q: JavaScrip with Struts HTML Tags


> Sorry,
> But it still didn't work..
>
> Error code:
> org.apache.jasper.compiler.CompileException: /select.jsp(16,0) Attribute
> onclick invalid according to the specified TLD
>
>    <You have the onclick event handler in the wrong place; stick it in
> <html:select>, not <html:options>.
>
> <html:html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
>
> <body bgcolor="#FFFFFF" text="#000000">
> <html:form action="selectPP.do" name="SelectPPForm" scope="request"
> onclick="document.SelectPPForm.submit()">
> <table>
> <tr>
> <td>
> <html:select property="planningperiod">
> <html:options
> collection="pplist"
> property="ppid"
> labelProperty="ppid"
>
> />
> </html:select>
> </td>
> </tr>
> </table>
> </html:form>
> </body>
> </html:html>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to