aspose file tools*
The moose likes Struts and the fly likes validatorForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validatorForm" Watch "validatorForm" New topic
Author

validatorForm

venkatesh loganathan
Greenhorn

Joined: Aug 24, 2004
Posts: 14
Hi
Iam trying to validate a field for null in my form(Shopperform).When i give null values to it and submit the validation is taking place but no error page is displayed

I have generated all the required in struts-config.xml.When the input attribute is set to some tile iam getting a blank page if i remove the inut attribute its showing me 404 error.

Iam attcahing all the required files .can anyone pls help me out ..really i didnt sleep for the past 3 dys

Shopperform extends validatorForm
-------------
/**
* @param telephone
*
* @struts.validator type="required" msgkey="CustomerForm.telephone"
*/
public void setTelephone(String telephone) {
this.telephone = telephone;
}

Strtus-config
-------------
<action
path="/createCustomer"
type="com.cme.customer.CreateShopperAction"
name="customerForm"
scope="request"
input="showShopperTile"
unknown="false"
validate="true"
>

The pblm is with the input attribute.ITs not taking to that page.


My Action Class that saves customer Info ...Pls see whether the info i entered is correct
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: validatorForm
 
Similar Threads
validatorForm
How to reuse action class with xml validation
ActionErrors from Action Class are not displaying in struts jsp page
The server encountered an internal error (No input attribute for mapping path /login)
STRUTS VALIDATOR FRAMEWORK