. (Well, except for a System.out.println() call.) I
don't see how this is different from synchronizing the entire method.
Thanks for any insight,
--
Wendy Smoak
http://sourceforge.net/projects/unidbtags
Can you nest c:forEach tags?
Sorry... wrong list. :(
--
Wendy
(). If you're still holding a reference to it, as in
the code you posted, I would not expect the pool to reclaim the object.
It's not too clear from the javadoc, though.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
out there that would clear things up, or does anyone
have any advice? (This is a Struts app and the properties are being copied
from/to a DynaValidatorForm and the data transport object.)
Thanks!
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources
. If
necessary I can add a boolean property to the bean in question, but is there
a way to determine this using JSTL?
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
it as part of JSTL... it was a Struts tag I
wanted:
logic-el:notMatch expr=${clearanceRequest.prospect.key} location=start
value=0
Tells me whether the 'key' property of the Person contained in the
ClearanceRequest starts with a zero.
--
Wendy Smoak
? I didn't get any answers from struts-user, so I'm
thinking I need to write a custom validator for this.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
/apache/commons/valid
ator/ValidatorUtil.html
But there is no mention of it being deprecated or what to use in its place,
and nothing with a similar signature in the index.
What should I use instead?
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources
or the other to go with your
'set' method (and the types will have to match).
http://java.sun.com/products/javabeans/docs/spec.html
See section 8.3 Design Patterns for Properties
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM
conforming to the letter of
the standard?
Life is much easier when everything conforms to the spec, if something is
misbehaving you can go to the rules and either fix your code or log a bug
for BeanUtils.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM
with their
Form beans.)
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM
).
I know, I know... Open a bug, create a patch...
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
to set up
our resources from within the application itself.
No advice here on what to put inside it, bt I think a
ServletContextListener would be a better choice.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED
should the rule be so that it will call setPreferredName directly
on the PersonView object?
Thanks,
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-rules.dtd. :/
Since SetNestedPropertiesRule is new with 1.6, has it just not been added to
the xml rules yet?
Thanks,
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
/
call-method-rule pattern=preferredName
methodname=setPreferredName paramcount=0 /
/pattern
/digester-rules
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
is used when you are receiving the file, not sending
it.)
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Digester to
pass them through: as lt; for example.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
] agentStatementDetails=[]
[EMAIL PROTECTED] positiveEarnings=0.0 netEarnings=0.0]]
HTH, if you haven't solved it yourself by now. :)
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
/webuser, rule );
I haven't found anything that says one way or the other, but I'll avoid it
unless someone knows for sure.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
'download/person'.
in the log file.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
that !* would, well, match every pattern. What am I
missing?
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
that didn't match anything else.
Perfect! Thanks once again,
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in the javadoc for ExtendedBaseRules would be okay though.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
2002 was a long time ago, but this is all I could find in the archives:
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
( propName ) equivalent. Does LazyDynaBean work with
JSTL, and if so, what is the syntax to pull a String|List|Map out of it?
Thanks,
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
?
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
??? );
digester.addCallParam(download/person/degree, 2);
Is it possible to set indexed properties with Digester?
A 'normal' bean might have an 'addWhatever' method, but I don't see anything
helpful in the LazyDynaBean API docs.
Thanks,
Wendy Smoak
ExtendedBaseRules() );
? Or... how can you do the same thing with RulesBase? (I _do_ just want it
to call setWhatever() for patterns for which there isn't any other match.)
Thanks,
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED
to populate LazyDynaBean's String and Map-backed
properties. I'm having trouble with Indexed properties still, but have not
pursued it since Mapped works well enough-- this is all coming from a
database, so I just use the unique record key as the key to the mapped
property.
--
Wendy Smoak
dynabean has up front and not let new
ones be created... obviously I need something other than LazyDynaBean, maybe
BasicDynaClass would work better for this?
Thanks,
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED
] for the moment-- mapped works just as well for me since I always
have a unique key for the whatever-it-is coming out of the database.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
an example of using nested properties in
xml rules under src/examples/xmlrules/addressbook.
These examples have been updated recently, so I'd recommend getting a recent
nightly build (source distribution) or just checking the source out with
cvs.
--
Wendy Smoak
here:
http://wiki.wendysmoak.com/cgi-bin/wiki.pl?DigesterLazyDynaBean )
Does anyone see what I'm doing wrong?
And what's the proper way to refer to the stack elements. If 0 is the top,
is the next one -1 or 1?
Thanks,
Wendy Smoak
to the
LazyDynaBean object stored on the stack.
Weird. Is there a convention to use either negative or positive numbers, or
does it not matter? I suppose it depends how you draw your stack on paper,
whether 'next' is up or down. :)
--
Wendy Smoak
From: Wendy Smoak [EMAIL PROTECTED]
But what do I do with indexed properties where the call to
LazyDynaBean.set(name,index,value) requires an integer index? (A person
may have more than one degree.)
digester.addCallMethod(download/person/degree, set, 3);
digester.addObjectParam
attributes as keys and the contents of the item tags as values from a
directory of XML files
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
);
It should create a TreeMap and then call 'put' with the value of the NAME
attribute and the body of the ITEM tag as the name/value pair. Some of
the method params may be switched around, double check the signatures.
HTH,
--
Wendy Smoak
there, it seemed like a good idea...)
Simon Kitching's comments on this bug may be enlightening:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33001#c20
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
as the second parameter to 'put' on the TreeMap. I have an example of
something similar-- it creates an ArrayList of LazyDynaBeans, you should be
able to adapt it to creating a TreeMap of Items.
http://wiki.wendysmoak.com/cgi-bin/wiki.pl?DigesterLazyDynaBean
--
Wendy Smoak
had 'Version' and 'Item' classes, and I talked you out of using them. (You
said you wanted a TreeMap, so I helped you populate a TreeMap!) I think you
were on the right track originally, see what you get for listening to me? :)
--
Wendy Smoak
to a base 64 encoded byte[].
You can see his message in the archives here:
http://www.mail-archive.com/commons-user%40jakarta.apache.org/msg10036.html
Info on subscribing to commons-user is here:
http://jakarta.apache.org/site/mail2.html#Commons
--
Wendy Smoak
a String constructor that takes a byte[], (and you can
specify the charset if necessary).
HTH,
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_think_ you're stuck on sending a base 64 encoded serialized object back
to the client, but I'm not certain. If that's the case, please show the
server-side code you're using to send the response, and then what you've
done on the client.
--
Wendy Smoak
, and what your code is doing instead.
( http://www.catb.org/~esr/faqs/smart-questions.html ) Maybe try it with a
Vector of String or Date objects, so that anyone who wants to try your code
can do it without needing additional classes.
--
Wendy Smoak
targetOffset, java.lang.String methodName))
Kartik, I opened a bug report for this and attached a patch:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33550
Feel free to offer up suggestions or attach another patch. I'd bet there
are no unit tests, so it needs those also.
--
Wendy Smoak
similar. The javadocs say that the getResource method
delegates the call to its class loader after making some changes.
HTH,
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: Chetan Sahasrabudhe [EMAIL PROTECTED]
3. xsl driven CSV conversions (CSV to XML, CSV to HTML, CSV to EDI, CSV to
*new format*)
Something I came across a while ago... it's a CSV to XML converter:
http://www.dpawson.co.uk/java/csv2xml.html
--
Wendy Smoak
index); // indexed getter
void setter(PropertyType values[]); // array setter
PropertyType[] getter(); // array getter
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
to make it do
what I want, does anyone have another suggestion? And what would _you_ call
it?
Thanks,
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Error: File corrupt
Am I doing something wrong?
http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions
(Third one down... you need to tell it you're transferring a binary file.)
--
Wendy Smoak
-
To unsubscribe
tremendously.
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
? (Inefficient though it may be, first I just want to see it
work.)
Meanwhile, is there another way I can get the buffer to be in the correct
LRU order? The LRUMap did work, but it's ugly having to put the empty
String into the Map, when I don't need key/value pairs.
Thanks,
--
Wendy Smoak
CircularFifoBuffer is really going to do it.
I'll probably go back to LRUMap; it beats having to write and maintain it
myself. :)
Thanks,
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
menu under Project Documentation,
Project Reports- JavaDocs
http://jakarta.apache.org/commons/httpclient/apidocs/index.html
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
to fire before SetNextRule? help at all?
http://wiki.apache.org/jakarta-commons/Digester/FAQ#head-0c420b259535afae9ed521d805ee9eaa2a93161c
--
Wendy Smoak
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
On 12/18/05, Craig McClanahan [EMAIL PROTECTED] wrote:
As usual in Apache land, we tried to stay backwards compatible with the old
syntax, even though it ideally would have gotten pulled before the
1.0release. I would suggest sticking with the syntax that supports
multiple catalogs, but with
On 1/22/06, Adam Hardy [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED]:/home/java/commons-beanutils/trunk$ svn up
http://svn.apache.org/repos/asf/jakarta/commons/proper/beanutils/trunk
svn: 'http://svn.apache.org/repos/asf/jakarta/commons/proper/beanutils'
is not a working copy
Which directory
On 3/24/06, David Zhang [EMAIL PROTECTED] wrote:
I am writing a web page for uploading documents. I use FileItem.getName()
to
retrieve the original file name. However the string returned by this
method
contains lonly lower case letters. Why? How can I a filename with correct
upper/lower
On 7/26/06, Vincent Massol [EMAIL PROTECTED] wrote:
Someone just told me that Cargo is not building anymore because the 20060719
snapshot is no longer there! I checked and it's not there...
It looks like there is an automated process to keep a week's worth of
nightly builds. Files from 7/20
On 9/26/06, Robert Hedin [EMAIL PROTECTED] wrote:
I just saw the announcement for Commons-Configuration 1.3 at
http://jakarta.apache.org/ and thought I'd check it out. Actually looks
pretty interesting, in fact it looks like I can use it to replace
something similar we've been working on
On 1/24/07, Simon Kitching [EMAIL PROTECTED] wrote:
Well, actually, the dependency on servlet-api should probably be marked
both optional *and* provided, in that it is not needed in order to use
many JCL features, but if you do want to use the JCL cleanup on webapp
unload then the supporting
62 matches
Mail list logo