Dave Johnson on open web technologies, social software and software development
« Redhat to bundle... | Main | FreeRoller OSCache... »
I've been working feverishly against a Friday deadline, having lots of fun, and learning more than I ever wanted to know about Struts, Hibernate, XDoclet, etc. I'm the closest thing that we have on the project to a Struts expert, so I've had to come up to speed fast on Struts Tiles, Struts Validator, and XDoclet's Struts support. So far, so good, but now I've hit a snag. I've run up against what appears to be a serious Struts Validator limitation: no support for java.math.BigDecimal
.
I tried using the double validator, but when I apply the XDoclet tag for the double validator to a field that is a BigDecimal, XDoclet does not generate an entry for the field in validation.xml
. Maybe, if I can fix this I can get away with using the double validator. Hmmm...
To resolve this problem the right way, it seems that I'll need to write my own validator. No problem right? I think this involves four steps:
validateBigDecimal()
method for server-side validation.validator-rules.xml
.That last step is a doozy. There's got to be an easier way, but googling turns up nothing. I guess I have figured out how I will spend my evening.
Dave Johnson in Java
02:09PM Aug 11, 2003
Comments [3]
Tags:
Java
This is just one entry in the weblog Blogging Roller. You may want to visit the main page of the weblog
Below are the most recent entries in the category Java, some may be related to this entry.
Posted by Erik Hatcher on August 12, 2003 at 07:39 AM EDT #
Posted by Erik Hatcher on August 12, 2003 at 07:42 AM EDT #
Posted by Unknown on September 03, 2003 at 07:10 AM EDT #