469,946 Members | 1,897 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

problem in validation cost in struts2

149 100+
hi gud mrng,
in my application i had to do validation for cost im dng server-side validations..i used regex for cost..but im not getting validated can any one help me out..here is the code
Expand|Select|Wrap|Line Numbers
  1. <field name="cost">
  2.         <field-validator type="regex">
  3.             <param name="expression"> ^\[0-9]+(\.\?[0-9]+)?$ </param>
  4.             <message>Enter Valid Cost</message>
  5.         </field-validator>
  6.     </field>
Oct 20 '10 #1
0 920

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

By using this site, you agree to our Privacy Policy and Terms of Use.