Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Arguments to Validator

Status
Not open for further replies.

vikg

Programmer
Oct 24, 2005
1
US
I am using struts validator for the validations. I am doing a required fields validation where it is a multiple entry screen where user would enter different expenses like,
1. Name, Date, Expense
2. Name, Date, Expense
3. Name, Date, Expense
4...
5...

If user does not enter name in 3rd row i want to show a message like "Name is not entered in row 3". where the row number in the message is a place holder "{0}", how to pass the value which is present in the form to the place holder? What needs to be mentioned in validator.xml so that the place holder {0} should fill in the value from a form field?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top