This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Validator no firing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator no firing" Watch "Validator no firing" New topic
Author

Validator no firing

charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
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.
 
Consider Paul's rocket mass heater.
 
subject: Validator no firing
 
Similar Threads
ClassCastException in struts - urgent! :(
SEVERE: No action instance for path /xxxx ould be created java.lang.ClassCastExcepti
Struts IE render problem
Help me about html:select
Struts validation not working