File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validator no firing
 
Similar Threads
Struts validation not working
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