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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validatorForm