Hello,
I saw that has a "format" attribute for formatting dates and
dollar values. But I didn't see similar thing for . If my bean
has a property called "amount" of type BigDecimal, and I want to display
that as a for the user to modify the value, How can I format
it?
Also, if the user leaves
Everyone,
I found the problem in my code. I was using ActionErrors in my custom
validation method instead of ActionMessages. I found again that the
mistakes done on obvious pieces are difficult to track down.
Do I need to close this discussion?
Thanks all,
Kiran
---
Hi Niall,
Up on further search, I found questions like mine in various forums. The
problem is I guess I am not adding the errors in the validation method
correctly. Also, the I added the following line in my method.
---
errors = new ActionErrors();
I did this because
Niall,
If you see my earlier reply to my question, I included the source code of
my validateTwoField(..) method. I include it here again for your perusal. I
do instantiate the ActionErrors object and add an ActionMessage as you see.
public static boolean validateTwoFields(Object bean, ValidatorA
Dave,
Here's my method that does the validation:
public static boolean validateTwoFields(Object bean, ValidatorAction va,
Field
field, ActionErrors errors,
HttpServletRequest request) {
String value = ValidatorUtils.
Hello All,
I am trying to use the TwoField pluggable Validator example from the
struts's site. I replaced the deprecated method calls in
validateTwoFields(..). For some reason, when I run my application, it
doesn't validate the input fields. Instead it directly takes me to the
success page after
6 matches
Mail list logo