The validator tags are not built into the struts html taglib.  Here's what I
use for my 1.13b app (actually it's a nightly build post 1.1b3 for the cdata
attribute).

<html:javascript formName="myForm" cdata="false" 
      dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" 
      src="<html:rewrite page="/scripts/validator.jsp"/>"></script>


validator.jsp contains:

<%@ page language="java" contentType="javascript/x-javascript" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %>

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

HTH,

Matt

> -----Original Message-----
> From: Pfeifer, Craig [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 11:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: Location of struts:validator tag library for client-side
> validati on?
> 
> 
> Howdy!
> 
> On page 136 of 'Struts in Action' it says that you have to 
> add the struts
> validator tag lib to the web.xml. However, throughout this 
> book it states
> that the validator has been baked into struts 1.1 and doesn't 
> require any
> setup.
> 
> So, is there a validator tag lib to use for client side 
> validation, or do
> you just use the javascript tag? Did this change between beta 
> 2 (what the
> book is based on) and beta 3?
> 
> TIA,
> 
> Craig
> 
> ---------------------------------------------------------------------
> 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