For the tag html:form, the attribute "name", "type" and "scope" have been
removed from Struts 1.2, they were deprecated in 1.1.
They have been used to override the action mapping in the
struts-config.xml file between an action and its form-bean.
The name of the <form> element in the resulting HTML page will have the
name of the form bean related to the action and there is no way to change
it. So if you want to reference it in JavaScript, use its form bean name.
Anyway in your code there is an error. You have to rewrite it this way:
<html:form action="/Aliquot">
..
</html:form>

Ciao
Antonio Petrelli

Sebastian Ho wrote:

>Hi
>
>I have the following exception :
>
>javax.servlet.ServletException: Must specify type attribute if name is
>specified
>
>when I insert a name parameter to my html:form as shown here.
>
><html:form action="Aliquot.do" name="aliquotForm">
>
>The reason for the name is for my javascript.
>
>Why is it throwing this exception?
>
>I can't even find 'type' in the struts javadoc for html:form.
>
>
>Thanks
>
>Sebastian Ho
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to