Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validator no firing

 
charu latha
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JSP page - partly included

<td colspan="2" bgcolor="#ffffff">
<table cellspacing="0" cellpadding="3" width="98%" align="center" summary="" bgcolor="#EEEEEE" border="0">
<tbody>
<tr bgcolor="#ffffff">
<td width="24%">
<div align="right">First Name<span class="rank">*</span></div>
</td>
<td width="25%"><b><html:text property="firstName" /></b></td>
<td width="25%">
<div align="right">Country<span class="rank">*</span></div>
</td>
<td width="26%"><b><html:select property="country">

My Config file partly

<form-bean name="registerationBean" type="com.zerodegrees.struts.forms.auth.RegisterFormBean" />
<action path="/register"
type="com.zerodegrees.struts.actions.auth.RegisterAction"
name="registerationBean"
scope="request"
validate="true"
input="/views/auth/registration.jsp">
<forward name="success" path="/views/auth/registerConfirm.jsp" />
</action>

My application resources - partly
prompt.remember=Remember Me
prompt.forgotpassword=Forgot Password?
prompt.signup=Sign Up Now!
prompt.firstname=First Name
prompt.lastname=Last Name
prompt.company=Company
prompt.title=Title
prompt.industry=Industry

My form bean extends the validator form and has all the getter and setter methods.

So why would my validator not fire at all.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic