|
|
cripes_my_head_hurts
|
|
kingsuperspecial
|
private ActionErrors validateSpecialRate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = WfbActionErrors.getNewActionErrors(); // little complicated - validation association with // an array of validators - Double validator should help // refine what sort of errors we're getting ValidationAssociation rtVal = new ValidationAssociation( "specialRate",true ,new InterestRateValidator( new Integer(6), new InterestRate(0), new InterestRate(9.999999) ) ); ValidationAssociation dblVal = new ValidationAssociation( "specialRate",true ,new DoubleValidator( new Double(0.99999), new Double(9.999999)) ); if (StringUtility.hasValue(getSpecialRate()) && getSpecialRate().indexOf(".") == -1) { errors.add(null,new ActionError( "createWireForm.specialRate.decimal. required")); } // try double validation first validate(mapping, request, errors, dblVal); // if it set an error bail, or you'll get "format" error twice. if (!errors.empty()) return errors; String contract = getContract(); // // String amount = getAmount(); // String currencyAmount = getCurrencyAmount(); // Money newAmount = new Money(getAmountForMessage()); if(!StringUtility.isBlank(contract)) { if(StringUtility.isBlank(getCurrencyCode())) { errors.add(null,new ActionError( "createWireForm.specialRate. currencyRequired")); } validate(mapping, request, errors, rtVal); } return errors; }
|
020919
|
|
... |
|
She
|
Understandably
|
020920
|
|
... |
|
x
|
funny that this should be at the top of the list, right when I wake up with a planet sized headache
|
020920
|
|
... |
|
kingsuperspecial
|
again. stupid. but I did have fun. I'm glad I'm single, and free to be as big and idiot as I please. In retrospect, I don't believe that nobody cares.. Plenty of people care, and I need to make myself one of them. it's a pointless waste of time for me to think or do anything else. ah...I feel better already. except for my head.
|
020927
|
|
|
what's it to you?
who
go
|
blather
from
|
|