Try using a Boolean value, something like this:
private Boolean myBoolean = null;
public boolean getMyBoolean() {
if( myBoolean==null ) return true;
return myBoolean.booleanValue();
}
public void setMyBoolean(boolean value) {
myBoolean = new Boo
PropertyMessageResource uses a HashMap as a Set. Instead, an actual Set
should be used. As well, variables are declared of type HashMap rather
than being Map and only instantiating a HashMap. This is poor programming
practice becuase it can cause problems with future fixes and I've also
fixed t
Some implementations of pageContext do not allow null values in the page
context (and other contexts as well).
There is a remove method that is supposed to be used for those situations.
Here is a fixed doStart method for DefineTag.
public int doStartTag() throws JspException {
// Retrie
+1 to capping 1.1 after dealing with validator/services/tiles.I'd
really like to have the 1.1 version available for use in products fairly
soon.
Bill Wallace
(585) 214-8872
Fax: (585) 295-4718
Element K
'the knowledge catalyst'
www.elementk.com
The Java security mechanism is quite easy to use. The main classes are:
1) Subject - defines a person - contains several Principals, and has
methods to allow code to be executed as a given Principal.
2) Principal - sort of like a role that a person has. The primary
Principal is the one th
Please use the standard java security mechanism, rather than trying to
invent a new one. The standard mechanism is very general, and allows very
fast checks when security is turned off, and conversely, allows very
fine-grained security checks to be made. I have implemented this in a
web-model a
What I have seen done is to have an object store the query information,
including sorting options, in an object, along with a transient (so that
during failover, it gets regenerated) index, and a NON-transient
include/exclude selection list (ie either items that are included are
listed, or items
The problem of getting the validation information is really a problem of
where one gets meta-data from. Some meta-data depends on context, and some
is fixed, and that is really the indicator for where it should be put.
Another piece of meta-data is the human readable title for the attribute.
Aga
Take a look at how Barracuda event handling works. I think it allows most
of this type of handling to be done quite elegantly. The web site is
http://barracuda.enhydra.org
The code is open source, and could be used either directly, or as a library
if the licenses are compatible. Otherwise, it
The java beans code does not itself provide string conversion
customization, but it contains quite a lot of similar code, including some
string conversion code that is bean specific (ie not changeable based on
form and/or locale) in the PropertyEditor interface. What I am working on
is a sub-cla
The to/from string conversion should be done similar to how java beans
works, since it can then be used more generally than just the Struts
framework. However, it needs some I18N additions which currently aren't
available in the java beans work.
Bill Wallace
Fax: (716) 295-4718
Element K
'the
11 matches
Mail list logo