Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validatorForm

 
venkatesh loganathan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic