struts-config-Login.xml <form-bean name="testForm" dynamic = "true" type="org.apache.struts.validator.DynaValidatorActionForm">
<form-property name="password" type="java.lang.String" />
<form-property name="username" type="java.lang.String" />
</form-bean>
<action
attribute="testForm"
input="/Login/test.jsp"
name="testForm"
path="/test"
scope="request"
validate="true"
type="com.mycompany.struts.action.TestAction" />
<action forward="/test.jsp" path="/testindex" />
****************************************************************
validation.xml <formset>
<form name="testForm">
<field property="username" depends="required">
<arg0 key="loginname" resource="false" />
</field>
<field property="password" depends="required">
<arg0 key="loginpassword" resource="false" />
</field>
</form>
************************************************
this is the validator-rules.xml version.
$Id: validator-rules.xml,v 1.1.2.1 2006/07/01 20:50:46 eugene-proddev Exp $
***********************************************
<html:form action="/test.do" onsubmit="return validatetestForm(this);">
password : <html:text property="password"/><html:errors property="password"/><br/>
username : <html:text property="username"/><html:errors property="username"/><br/>
<html:submit/><html:cancel/>
<html:javascript formName="testForm"/>
</html:form>
***************************************************
on submitting the
jsp page it does not validate. It shows me a blank screen. Can anyone point me if I am doing something wrong
[ February 07, 2007: Message edited by: shah rah ]