RE: server-side, java-based validation rules for struts..

2001-06-22 Thread ABolarinwa

Anyone know of utilitiy that helps in editing the application resources.

We currently keep the validation regular expression and masks in the
applcation resources. This is convenient since some of these may be locale
dependent. It would be nice to have a utility that help in adding to, select
from the AplicationResource file.

Forte for Jave has in-built tool for this, but it is only available when
editing java source .java and not .jsp.

Any clue on this

Akin

-Original Message-
From: Nick Afshartous [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 1:44 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: server-side, java-based validation rules for struts..



David Winterfeldt writes:
 > I don't think there would be anything wrong with your
 > idea, but I think it is a little more flexible keeping
 > the validation separate from the ActionForm.  I
 > started working on a validation framework, but I put
 > the info in an xml file.  I would rather change a
 > value in an xml file than having to recompile my code.
 >  
 > 
 > * It makes the validation rules more accessible to
 > less technical people.  One day the XML might tie into
 > a JSP editing tool to provide easy access and editing
 > of the validation rules.

I've been thinking of doing something similar for 
the logic rules associated with business objects.  
For example, consider an Employee class where the 
logic to calculate the bonus is based on some of the
other attributes of the object (i.e. jobcode, location).

It would be useful to define these rules in XML to 
facilitate maintenance as you point out for validation
rules.  
-- 

Nick





RE: How do I call the bean:write tage for a property 'OID'

2001-06-21 Thread ABolarinwa

Todd,
We had problem with any property that the first two characters are
uppercase. This problem may be from conversion of OID to getOID and setOID.

In our case we had to ensure that the first and second characters are lower
case like oiD then it worked. 

Akin

-Original Message-
From: TODD HARNEY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 3:02 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: How do I call the bean:write tage for a property 'OID'


How do I call the bean:write tage for a property 'OID'?

I have tried both: bean:write property='OID' and bean:write property='oID'

Any ideas?
Todd