Joe:
    Thanks, I gonna try it.

El jue, 18-11-2004 a las 13:42 -0600, Joe Germuska escribiÃ:

> At 2:20 PM -0500 11/18/04, Erik Weber wrote:
> >I found that the JavaScript generated by the Validator (Struts 1.1) 
> >added nearly 40Kb to the page download! (Perhaps there is a way to 
> >only download a script once and reuse it among pages? I have no 
> >idea.) I don't use JavaScript validation other than a simple blank 
> >field check.
> 
> There is a way.  You can use the staticJavascript attribute and set 
> it to "false" in most of your pages, and then make a single JSP like 
> this:
> 
> 
> more validation_js.jsp:
> <%@ page language="java" %>
> <%@ page contentType="text/javascript; charset=UTF-8" %>
> 
> <%@ taglib uri="/struts/html-el" prefix="html" %>
> <html:javascript dynamicJavascript="false" staticJavascript="true" />
> 
> There you have it.
> 
> Joe
> 

-- 

Reply via email to