struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: How to replace normal html-from through html:form in Struts? Example
Date Tue, 13 Sep 2005 15:45:33 GMT
Jason-

If there is no name associated with your declared HTML form then use
document.forms[0] (basically the first form defined for the HTML document)
Personally I caution against using this convention as the caller does not 
properly identify the form (by name)

Anyone else ?
M-
----- Original Message ----- 
From: "Jason King" <jhking@airmail.net>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, September 13, 2005 11:05 AM
Subject: Re: How to replace normal html-from through html:form in Struts? 
Example


> gollinger wrote:
>
>><form name="next"  action="/jsp/awp/awpoutput.jsp" target="display" />
>><script language="javascript">
>>  document.next.submit();
>></script>
>>
>>
>>The problem I have is that the form tag in Struts has no name!
>>
>>Why?
>>So how can I execute the java-script? Which name should I use instead?
>>
>>Regards Antonio
>>
> document.form[0] or form[1] will work.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message