aspose file tools*
The moose likes Struts and the fly likes html:form - how to define name attribute? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:form - how to define name attribute?" Watch "html:form - how to define name attribute?" New topic
Author

html:form - how to define name attribute?

Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
<html:form> requires attribute "action" to specify the url of the action.do to invoke.
I also noted that <html:form name="myForm"> is deprecated.
How do I render the following html for javascript use?
<form name="myForm" action="MyAction.do">
</form>
[ September 10, 2002: Message edited by: Chu Tan ]
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Have you tried the onsubmit attribute of the form tag?


Matthew Phillips
Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
I am trying to do this
function process(){
document.myForm.submit();
}
<form name="myForm">
<select onChange="javascript:process()" name="id">
<option value="1">John Doe</option>
</select>
</form>
[ September 11, 2002: Message edited by: Thomas Paul ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:form - how to define name attribute?