473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 970

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

Similar topics

2
by: Joey P | last post by:
Hi all, I am doing a project for university whereby i have to implement a simple database related to a frozen foods company. I am having some trouble though creating a validation rule for one...
1
by: scan87 | last post by:
Can someone please, please help me in finding the slotuion of the following problem: The cost of one-day travel cards for adult customers on the metro system is based on which zones they cover and...
1
slapshock
by: slapshock | last post by:
hi.... i am using validation application blocks on my project on C#.net... i want to validate one of my textbox which is cost but ht e problem is i got an error... when i input numbers, the...
2
by: abehl | last post by:
Hi I have 2 combo boxes in a form. When the one combo box say COMBO1 is changed, onchange event runs with the option selected being appended to the url and the action associated with that action...
1
by: NamelessNumberheadMan | last post by:
I can't seem to get Struts 2 validations to work. I have been converting from Strust 1 to Struts 2. So far I've refactored all the code (for this particular module) on the back end, rewrote the jsp...
0
by: rajujrk | last post by:
Hi all, I am having a problem on netbeans 6.8... Import the struts2 plugin thru tools->plugins->downloaded->add plugins and i imported the two plugin files...
4
maxamis4
by: maxamis4 | last post by:
I currently have an input form in HTML. I am trying to use JavaScript to validate that the html forms are entered. I had it working earlier today but now my form is not validating. Could someone take...
10
by: madhuriks | last post by:
hi, im new to struts2..in my application i need to use that Struts2 concept..im developing jsp page..i had designed..drop-down box in jsp..if im doing validation it is not getting..and it is not...
1
by: Wendy Sullivan | last post by:
I have a table (LOG) with the Fields First Name, MI, and Last Name. My primary key is an Autonumber, but I would like to prevent duplicate name entries. However I have several names (like Jose...
1
by: autumnrrr | last post by:
th {height:50px;} td {padding:15px;} th {background-color:#0099cc;color:black;} .m {background-color:#7a52cc;color:black;} .t {background-color:#8a5ce6;color:black;} .b...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.