Try amp;
-Original Message-
From: Chiming Huang [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 11:51 AM
To: Struts Users Mailing List
Subject: Digester does not like ''
Hi,
We are using the Digester which comes with the Struts 1.1 for
reading xml files. The
Thank you for quick response. It works. Is there a handy class or method that will
do the encoding?
Thanks again,
Chiming
Robert Taylor [EMAIL PROTECTED] wrote:
Try
-Original Message-
From: Chiming Huang [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 11:51 AM
To:
check out
http://www.xml.com/pub/a/2001/01/31/qanda.html
Regards,
Martin
- Original Message -
From: Robert Taylor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 11:54 AM
Subject: RE: Digester does not like ''
Try amp
: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''
Try amp;
-Original Message-
From: Chiming Huang [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 11:51 AM
To: Struts Users
Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 11:35 AM
To: Struts Users Mailing List
Subject: Re: Digester does not like ''
amp; is the character entity for the ampersand sign ''.
-- Chris
NB. This is so basic that you absolutely should
it, to apply it; not having it, to
confess your ignorance.
-Original Message-
From: Andy Schmidgall [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 12:44 PM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''
Well, I know amp; is the character entity
Schmidgall [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 12:44 PM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''
Well, I know amp; is the character entity for , but I'm just not clear
on why amp; works in this case... Is it simply because '' is flagged
or at least not treat it like markup characters
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 3:19 PM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''
because the XML parser will expand entity references when
I am using Struts w/ WSAD 5.0 for development.
At the start up of the home page on Orion on Unix (after deployment) i see enormous
(could be Digester messages) debug statements,on the console, which causing 5-10 mins
delay in displaying the page.
I dont see this problem when i am running the
Hi,
I am using tomcat 4.1.18 on windows 2000
I have recently added a new webapp (struts-example-2002-06-11.war) to my
webapps directory.
I downloaded this struts example from :
http://bobcat.webappcabaret.net/ninsky/struts-examples-2002-06-11.war
Now when i restarted tomcat, there are
Look in the logs subdirectory of your Tomcat installation.
I've just checked and the app does load OK on my installation (Tomcat
4.1.24)
Let me know if you continue to have problems.
Steve
-Original Message-
From: Vijay Pawar [mailto:[EMAIL PROTECTED]
Sent: June 12, 2003 1:53 AM
To:
I installed 4.1.18 and deployed the war with no problems.
From the look of your error log I think that the validator is trying to do a
network lookup for its DTD. This was mentioned on the list in the last day
or so, but I didn't pay much attention at the time. I thought it had been
resolved so
Hello Steve,
As you have correctly guessed, my machine is not connected to the internet
all the time.
Is it not possbile to store the dtd on the local machine. what is the need
to access it via the internet.
Suppose i copy the dtd from the url then where should i store it on the
local machine
OK, if I disconnect the network connection then I get the same problems.
Steve
-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: June 12, 2003 3:10 AM
To: Struts Users Mailing List
Subject: RE: Digester error in struts example application
I installed 4.1.18
: RE: Digester error in struts example application
Hello Steve,
As you have correctly guessed, my machine is not connected to the internet
all the time.
Is it not possbile to store the dtd on the local machine. what is the need
to access it via the internet.
Suppose i copy the dtd from the url
4:08 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Digester error in struts example application
Hello Steve,
As you have correctly guessed, my machine is not connected to the internet
all the time.
Is it not possbile to store the dtd on the local machine. what is the need
Ahhh. Ok. So something inside InputSource retains a reference to the
base uri which keeps the parser happy. Makes perfect sense.
We use xml includes a lot for our internal config files so knowing about
this is a big time saver.
Using the second form, with an InputSource, lets Struts say
Glad it helped.
robert
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 9:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Digester Error - Hey Robert!
You were 100 percent on target, my man! It took me all day and 2000 lines
I've seen this when a property is defined under the same name twice within
a form-bean element.
Not sure that really offers any insight to the problem other
than I have seen it happen before.
robert
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Monday,
On Fri, 21 Mar 2003, Jeff Caddel wrote:
Date: Fri, 21 Mar 2003 05:38:54 -0700
From: Jeff Caddel [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Digester Best Practice
Any reasons for one of these approaches
Users Mailing List
Subject: RE: Digester Error
I've seen this when a property is defined under the same name twice within a
form-bean element.
Not sure that really offers any insight to the problem other than I have
seen it happen before.
robert
-Original Message-
From: Mark Galbreath
Apologies for the duplicate msg. I got a somewhat cryptic reply that
the orginal had bounced, presumably because it had xxx in the xml
doctype area.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
If you're looking at 1.1, the Digester instance is created in the
initConfigDigester() method of ActionServlet, which delegates to the
ConfigRuleSet class (in org.apache.struts.config) to add all of the
detailed rules.
Sweet. Thanks.
Could you imagine the programming required to scan
Check out the way Struts 1.1 builds a ModuleConfig tree, and extracts it
out, for ideas on how to handle this.
Is there anywhere I can view this without having to download the source? I'm
drastically out of disk space, and wont be able to get rid of anything for a
week at least.
Cheers
Simon
]
Sent: Thursday, January 16, 2003 7:01 PM
Subject: Re: Digester getting recursive tag types.
On Thu, 16 Jan 2003, Simon Kelly wrote:
Date: Thu, 16 Jan 2003 14:52:11 +0100
From: Simon Kelly [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing
On Fri, 17 Jan 2003, Simon Kelly wrote:
Date: Fri, 17 Jan 2003 15:11:42 +0100
From: Simon Kelly [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Digester getting recursive tag types.
I'm having a dig thru
On Thu, 16 Jan 2003, Simon Kelly wrote:
Date: Thu, 16 Jan 2003 14:52:11 +0100
From: Simon Kelly [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Digester getting recursive tag types.
Hi all,
I am trying to
On Tue, 22 Oct 2002, Andrew Hill wrote:
Date: Tue, 22 Oct 2002 21:07:30 +0800
From: Andrew Hill [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: [Digester] Version?
Which version of
-Original Message-
From: Nelson, Laird [mailto:[EMAIL PROTECTED]]
My mistake; I'm using struts 1.0.2 and its copy of Digester.
Solved the problem (of course; which is why I usually post to this list; the
minute the email goes out I find the answer...).
I had a file like:
a
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Are you using recent nightlies of Digester? They use
commons-logging for
debug output instead of the old System.out stuff now.
My mistake; I'm using struts 1.0.2 and its copy of Digester.
Cheers,
Laird
--
To
.
--Michael Marrotte
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 1:03 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Digester?
Digester, and all the other commons packages, are developed on the
COMMONS-DEV mailing
:
Date: Sun, 30 Jun 2002 22:25:05 -0400
From: Michael Marrotte [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Digester?
I'd like to get in contact with people involved with the Commons
) for developers, please let me know.
Any help is greatly appreciated.
--Michael Marrotte
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 30, 2002 10:32 AM
To: Struts Users Mailing List
Subject: RE: Digester?
And I try setting paramcount to zero... Also
On Tue, 11 Jun 2002, Struts Newsgroup wrote:
Date: Tue, 11 Jun 2002 03:10:02 -0700
From: Struts Newsgroup [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Digester rule(s) to reference outer tags
Subject: Digester rule(s) to
On Thu, 2002-05-16 at 17:28, Wojtek Rappak wrote:
Hi,
I tried to use the struts-example application as a simple template and made
a few simple changes to the struts-config.xml and web.xml files. These
parse OK in my XML editors. However, when I deploy the application I get a
'content not
I got that one time when I was passing the wrong static final constant
config filename to a home grown OR mapping tool.
I was passing the app resources filename when it was expecting an xml file.
Not sure if that helpsoh well!
JM
-Original Message-
From: Wojtek Rappak
PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject: RE: Digester/SAX parse error problem
I got that one time when I was passing the wrong static final constant
config filename to a home grown OR mapping tool.
I was passing the app resources filename when it was expecting an xml
Check your struts-config.xml and web.xml and make sure they are
well-formed. Use IE or anything that will tell you if your xml files are ok
or not.
Struts Newsgroup (@Basebeans.com) struts on 05/15/2002 10:55:01 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To:
Anyone?
/tataryn:craig
From: Craig Tataryn [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Digester Question
Date: Mon, 04 Mar 2002 14:19:07 -0600
I realize that the digester is now part of commons, but I figure there is
probably a lot of
On Mon, 4 Mar 2002, Craig Tataryn wrote:
I realize that the digester is now part of commons, but I figure there is
probably a lot of expertise here since it grew up in Struts. I was
wondering if someone could help me figure out the easiest way to do this:
I have an xml document, that holds
the beaninfo is all in the parent class - Component...
--Stacy
- Original Message -
From: dIon Gillard
To: Struts Users Mailing List
Sent: Saturday, March 02, 2002 8:06 PM
Subject: Re: Digester and inheritance
Stacy Weng wrote:
I have a parent class called Component
Stacy Weng wrote:
I have a parent class called Component, and several child classes extending from it.
All the common get/set methods are defined in Component. So, after each child is
getting created from addObjectCreate() method, I call addSetProperties() method to
initialize their values
I'm using digester and inheritance without problems. What kind
of exception are you getting?
Fernando
- Original Message -
From: Stacy Weng [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 1:20 PM
Subject: Digester and inheritance
Has
know to look its parent class, Component.
I hope I'm able to get my problem across. Thanks again for taking the time to respond.
--Stacy
- Original Message -
From: Fernando Esteban Barril Otero
To: Struts Users Mailing List
Sent: Friday, March 01, 2002 1:48 PM
Subject: Re
To: Struts Users Mailing List
Sent: Friday, March 01, 2002 1:48 PM
Subject: Re: Digester and inheritance
I'm using digester and inheritance without problems. What kind
of exception are you getting?
Fernando
- Original Message -
From: Stacy Weng [EMAIL PROTECTED]
To: Struts
appreciate it.
- Original Message -
From: Galbreath, Mark
To: 'Struts Users Mailing List'
Sent: Friday, March 01, 2002 2:40 PM
Subject: RE: Digester and inheritance
You are misusing inheritance. Instead of extending Component, give
HelperClass (was ChildClass) a private field
-
From: Stacy Weng [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 5:12 PM
Subject: Re: Digester and inheritance
Wouldn't that be a has-a relationship? If I do that, than I would end up
with this (since originally I have many child classes extending
to the relationships between your
classes; I am merely suggesting a refactoring of your code.
Mark
-Original Message-
From: Stacy Weng [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:13 PM
To: Struts Users Mailing List
Subject: Re: Digester and inheritance
Wouldn't that be a has
Users Mailing List'
Sent: Friday, March 01, 2002 12:45 PM
Subject: RE: Digester and inheritance
It appears from your listings and descriptions that Component is basically a
JavaBean and your helper classes should have has a relationships with it,
not is a. Essentially, what I am
the sample application has most of what is necessary.
I do remember having problems with the digester when I
was doing my own poc however and that was after
understanding the example app and reading the docs.
I think the example app is part of the source download
for struts 1.0
Sandeep
---
The Digester is now a Commons component.
http://jakarta.apache.org/commons/digester.html
Phase Communcations wrote:
Does anyone know of some good concise digester examples and tutorials. I
have been reading the docs but am unsure of several aspects of it.
Brandon Goodin
Phase Web and
The example updates the XML file so there must be code for you to browse.
Lou Farho
Certes Solutions, Inc.
2485 W MAIN ST
SUITE 205
Littleton, CO 80120
303.798.8079
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hmmm Is this too easy or too hard of a question to be answered?
Bob
- Original Message -
From: Bob Byron [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 01, 2001 3:16 PM
Subject: Digester content with elements
I was wondering how to
Could you not use a DOM parser, e.g. xerces, to do this?
Regards,
Scott
- Original Message -
From: Bob Byron [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 02, 2001 3:46 PM
Subject: Re: Digester content with elements
Hmmm Is this too
]
To: Struts Users Mailing List
[EMAIL PROTECTED]
Sent: Friday, November 02, 2001 3:46 PM
Subject: Re: Digester content with elements
Hmmm Is this too easy or too hard of a
question to be answered?
Bob
- Original Message -
From: Bob Byron [EMAIL PROTECTED]
To: Struts Users
, November 02, 2001 9:52 AM
Subject: Re: Digester content with elements
I don't understand how this is any different than the
stuff that comes with the documentation.
-sandeep
--- Scott Atwell [EMAIL PROTECTED] wrote:
Could you not use a DOM parser, e.g. xerces, to do
this?
Regards,
Scott
[EMAIL PROTECTED]
Sent: Friday, November 02, 2001 9:51 AM
Subject: Re: Digester content with elements
Could you not use a DOM parser, e.g. xerces, to do this?
Regards,
Scott
- Original Message -
From: Bob Byron [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent
1) Use struts 1.0 for toying around with the example, and if you think
you can use it, get the source code, and do a searchreplace.
2) Notify the author of the example, and ask whether he wants to make a
struts post-1.0 version.
hth,
tomK
-Original Message-
From: storck
are not defined
-Ursprungliche Nachricht-
Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 31. Oktober 2001 11:31
An: Struts Users Mailing List
Betreff: RE: Digester Problem
1) Use struts 1.0 for toying around with the example, and if you think
you can use
-Ursprungliche Nachricht-
Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 31. Oktober 2001 11:59
An: Struts Users Mailing List
Betreff: RE: Digester Problem
I cannot promise that I can answer your question, but I can tell you
that anybody who could
]
Pour :[EMAIL PROTECTED]
cc :
Objet : RE: Digester help needed ! -- peculiar
I'm reposting to fix the typo public void setgetErrdesc text below
is
corrected. I'm still having the same parsing problem as before.
You know, if I reformat the XML string to look like this:
loginerr errnum
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 3:31 AM
To: [EMAIL PROTECTED]
Subject:Réf. : RE: Digester help needed !
File: pic19718.pcx File: winmail.dat
Try to add this to your digester initilization
I'm reposting to fix the typo public void setgetErrdesc text below is
corrected. I'm still having the same parsing problem as before.
You know, if I reformat the XML string to look like this:
loginerr errnum=18 errdesc= Your smallcorp site login has expired!!
/
...it works fine (I can
Thanks Craig. I did, in the meantime, just created my own rule that calls
my factory method. Not as elegant as what you're doing. Thanks, again...Tom
At 05:05 PM 8/27/01 -0700, you wrote:
On Fri, 24 Aug 2001, Tom Tibbetts wrote:
Date: Fri, 24 Aug 2001 09:52:30 -0500
From: Tom Tibbetts
On Fri, 24 Aug 2001, Tom Tibbetts wrote:
Date: Fri, 24 Aug 2001 09:52:30 -0500
From: Tom Tibbetts [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Digester and Factory methods
Greetings. I'm using the digester to read a poor-person's DB and am
wondering if
Hello Sean,
You can create only ONE instance of Digester in your application. If
it can help you...
Friday, August 24, 2001, 5:26:22 PM, you wrote:
S Ok, after spending over 2 hours trying to debug this can I get some eyes on
S this please? Does anyone see anything wrong with this method ran
Oleg,
I am running this from a main() test program and only one instance it being
created. Do you see anything wrong with the rules? XML file?
Sean
Title: Re: Digester throwing ClassNotFoundException for ActionFormBean
I'm using Xerces 1.4.* and Xalan 2.2.*. I believe both implement JAXP 1.1.
Thanks,
Todd
Which version of JAXP and Xerces are you using? The nightly builds require
JAXP 1.1, so you may find you need a newer version
Which version of JAXP and Xerces are you using? The nightly builds require
JAXP 1.1, so you may find you need a newer version. See the Struts
installation page for details:
http://jakarta.apache.org/struts/installation.html
Martin.
- Original Message -
From: Hough, Matthew [EMAIL
On Wed, 25 Jul 2001, Steven D. Wilkinson wrote:
I have an object that takes an argument in the Constructor. How do I do
this during an addObjectCreate call?
This issue was recently (well, yesterday :-) addressed in the version of
Digester that is included in the jakarta-commons project.
Of
course - as soon as I sent the email - I found the correct 3 parameter method
addCallParam which includes the attribute name as the 3rd
param.
Sorry
for the needless emails...
-Original Message-From: Rafert, Tim Sent:
Wednesday, August 01, 2001 2:49 PMTo:
'[EMAIL
I tried to retrieve texts like you. I think it is impossible because
Digester uses Sax underneath, and it is not a intern Sax functionality.
What you can do, is either to rewrite your own Digester using Sax by adding
a layer that is able to accumulate text within nested tags (PCDATA)
OR
to
On Wed, 23 May 2001, Nick Afshartous wrote:
Hi,
I'm using the digester to process the nested content in
XML tags and am noticing that the leading/trailing whitespace
doesn't seem to be removed as advertised in the doc.
Hmm.
You're correct that the whitespace isn't being trimmed.
On Thu, 24 May 2001, Mark Simms wrote:
I believe the digester must be rewritten to support the JAXP 1.1 specs.
It's already been done in the Jakarta Commons version of Digester. Struts
will switch to this at some point *after* 1.0 final -- the advertised XML
parser requirement for
I believe the digester must be rewritten to support the JAXP 1.1 specs.
wow, almost everything in digester is now deprecated...
- Original Message -
From: Nick Afshartous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 1:25 PM
Subject:
Craig,
Could you describe the exact rules you are trying to use? It's not
possible to answer your questions just from this description.
Craig
Here are the rules I use for my case :
digest.push(this);
digest.addObjectCreate(connector/config, java.lang.Exception,
On Thu, 19 Apr 2001, Noel Sebastien wrote:
Hello,
It seems that addCallParam push a String on the stack, why ? It is very
annoying for my program. How can I by pass that problem ?
I would like to parse the following XML :
connector name=MQ1 className=connector.MqJmsConnector
On Mon, 9 Apr 2001, Erik Eriksson wrote:
Hi!
To bad, Digester seems to be a good idea
but this bug is making it impossible for me to
use it. All I need is someone to take the final-
declaration away, then I could inherit Digester
and override the methods I want.
Is there any plan on
-
From: "Deadman, Hal" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Digester parser error to another output.
I submitted a bug report about this issue on Friday.
You can add your
comments or vote for it. It's bug #1166.
http://nagoya.apache.or
I submitted a bug report about this issue on Friday. You can add your
comments or vote for it. It's bug #1166.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1166
Hal
-Original Message-
From: Noel Sebastien [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:01 AM
To:
Actually, there's a setter in MyBean (setProp) but no corresponding "prop"
attribute in the XML. At runtime, the JVM can't find type SomeType, and
it looks like that causes Digester to not ever call setName(). If I
comment out the first 4 lines of the MyBean class (all the
SomeType/setProp
Sorry - I noticed a confusing mistake in my post. I was never actually
calling "new SomeType()" - that's why there was no runtime error.
Zach Thompson wrote:
Hello,
I just spent quite a bit of time debugging some code that uses a
Digester, and I'd like to share what I found.
class
Regarding your first point, are you saying "There's a name attribute in the
XML, but there's no corresponding setter, so the Digester should flag an
error"? If not, I apologise for putting words in your mouth. :-}
One of the nice things about the Digester is that I can tell it which
pieces of
On Mon, 12 Mar 2001, Zach Thompson wrote:
Hello,
I just spent quite a bit of time debugging some code that uses a
Digester, and I'd like to share what I found.
class MyBean {
SomeType p = new SomeType();
public void setProp(SomeType p) {
this.p = p;
}
"Gogineni, Pratima" wrote:
Hi,
I have been reading the documentation on digester - I was wondering if it
uses XPATH for element pattern matching and if it doesnt why not?
I dont think the documentation mentions this ...
That's *usually* a pretty good sign that it doesn't support the
Hello Craig,
as always you gave the conclusive hint. Perhaps you should add an example of the usage
of
this methods to the documentation. It would make things much more clearer.
thanks,
Jens
"Craig R. McClanahan" wrote:
Jens Rehphler wrote:
Hello Steven,
I think I didn't described
Jens Rehphler wrote:
Hello Craig,
as always you gave the conclusive hint. Perhaps you should add an example of the
usage of
this methods to the documentation. It would make things much more clearer.
Good idea. I'm adding an example of using this technique to the Developer's Guide
page
It also has to do with your class structure and your xml.
I haven't tested this, but try this
public class User {
private Tagwithbody twb = null;
public void setTagwithbody(Tagwithbody theClass) { twb = theClass; }
public Tagwithbody getTagwithbody() { return twb; }
}
public class
Hello Steven,
I think I didn't described my problem correctly. Parsing the properties of a tag works
well. But I want to parse the content between some tags. For example:
database
user propertie="name"
textthis is the value i want to initialize my class with/text
/user
/database
Jens Rehphler wrote:
Hello Steven,
I think I didn't described my problem correctly. Parsing the properties of a tag
works
well. But I want to parse the content between some tags. For example:
database
user propertie="name"
textthis is the value i want to initialize my class
I've been using a slightly simpler method than Craig's to get the body
content. I use this:
digester.addCallMethod("database/user/text", "setText", 0);
I got the idea for this from the JavaDoc comment for addCallMethod, which
says that specifying zero for the parameter count means "a single
[EMAIL PROTECTED] wrote:
I've been using a slightly simpler method than Craig's to get the body
content. I use this:
digester.addCallMethod("database/user/text", "setText", 0);
I got the idea for this from the JavaDoc comment for addCallMethod, which
says that specifying zero for the
92 matches
Mail list logo