I think you're problem is that xmlText expects String. Have you tried
xmlURL, isntead of xmlText. here is the way I use parse, which works
fine.
c:set var=xmlurlsample.xml/c:set
x:parse var=dom
c:import url=${xmlurl}/
/x:parse
peter lin
Steve Appling wrote:
I am having problems
simple I was missing that was keeping this from working.
- Original Message -
From: peter lin [EMAIL PROTECTED]
To: Tag Libraries Users List [EMAIL PROTECTED]
Sent: Thursday, April 18, 2002 8:42 AM
Subject: Re: JSTL x:parse problems
I think you're problem is that xmlText expects String
Subject: Re: JSTL x:parse problems
I think you're problem is that xmlText expects String. Have you tried
xmlURL, isntead of xmlText. here is the way I use parse, which works
fine.
c:set var=xmlurlsample.xml/c:set
x:parse var=dom
c:import url=${xmlurl}/
/x:parse
peter
]
Sent: Thursday, April 18, 2002 8:42 AM
Subject: Re: JSTL x:parse problems
I think you're problem is that xmlText expects String. Have you tried
xmlURL, isntead of xmlText. here is the way I use parse, which works
fine.
c:set var=xmlurlsample.xml/c:set
x:parse var=dom
On Thu, 18 Apr 2002, Steve Appling wrote:
Thank you Shawn! I had hoped I was just doing something stupid.
Unfortunately that isn't the only thing I'm doing wrong - this just moved me
to my next problem. Here's a simplified example-
ignoring the reader code I have:
x:parse
PROTECTED]
Sent: Thursday, April 18, 2002 3:25 PM
Subject: Re: JSTL x:parse problems
On Thu, 18 Apr 2002, Steve Appling wrote:
Thank you Shawn! I had hoped I was just doing something stupid.
Unfortunately that isn't the only thing I'm doing wrong - this just
moved me
to my next problem. Here's
: Thursday, April 18, 2002 3:25 PM
Subject: Re: JSTL x:parse problems
On Thu, 18 Apr 2002, Steve Appling wrote:
Thank you Shawn! I had hoped I was just doing something stupid.
Unfortunately that isn't the only thing I'm doing wrong - this just
moved me
to my next problem. Here's
Thank you - I was under the mistaken impression that jstl.jar and
standard.jar contained the entire JSTL implementation (at least what wasn't
already in Tomcat's common lib). That definitely needs to make it into the
documentation.
BTW, in the example you sent you had:
x:parse xml=${reader}
On Thu, 18 Apr 2002, Steve Appling wrote:
BTW, in the example you sent you had:
x:parse xml=${reader} var=doc/
In my version, the attribute for the parse action needs to be
xmlText. Was that a typo or are you using a different version than I
am? Also I was not aware that I could get a