You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Wendy Smoak <We...@asu.edu> on 2003/11/18 23:17:21 UTC

Turn off javascript validation generation

Is there a way to turn off all (750 lines!) of the JavaScript that gets
generated for form validation?

Thanks,
-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 



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


Re: Turn off javascript validation generation

Posted by Caoilte O'Connor <li...@caoilte.org>.
yes, check the site docs, but basically submit as you would 
when you don't want validation. also you could do this,

<html:javascript formName="XForm"
dynamicJavascript="true"
staticJavascript="false"/>

<script language="Javascript1.1" src="<%
=request.getContextPath()%>/pages/staticJavascript.jsp></
script>

where staticJavascript.jsp contains

<%@ page language="java" %>
<%-- set document type to Javascript (addresses a bug in 
Netscape according to a web resource --%>
<%@ page contentType="application/x-javascript" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html:javascript dynamicJavascript="false" 
staticJavascript="true"/>


that will cache 99.9% of the javascipt you're complaining 
about.

c



On Tuesday 18 November 2003 23:17, Wendy Smoak wrote:
> Is there a way to turn off all (750 lines!) of the
> JavaScript that gets generated for form validation?
>
> Thanks,


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