aspose file tools
The moose likes Struts and the fly likes calculations/formatting using validation.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "calculations/formatting using validation.xml" Watch "calculations/formatting using validation.xml" New topic
Author

calculations/formatting using validation.xml

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
can we do calculations/formatting in validation.xml. i have text field for monthlysalary and on entering value in this field I need to populate the annual salary text field. Also append commas and dollar sign. how is this done in struts?
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
No, the validation framework cannot do this for you. It sounds like you need to write some client-side JavaScript for doing the calculations.

- Brent
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: calculations/formatting using validation.xml
 
Similar Threads
String Conversion
date validation for a combo box entry
how to make one, out of two fields mandatory
validation: how to make int and double validations work ?
advanced calculator