-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jerry,

On 4/20/13 2:14 PM, Jerry Malcolm wrote:
> I have been searching for several hours for a basic JSTL answer
> with no luck.  From what I can tell, JSTL is under the umbrella of
> Tomcat.

Nope, but I can understand the confusion.

JSTL is a standard that describes a set of JSP tags. "Jakarta Taglibs"
aka "Apache Taglibs" (found under the Tomcat umbrella) is one
implementation of the JSTL specification. At this point, it's
basically a dead project because apparently nobody cares about it anymore.

I think just about everyone uses Glassfish's implementation:
https://jstl.java.net/

> I simply want to use an existing already-parsed DOM
> (org.w3c.dom.Document variable) with JSTL XML tags.  In other
> words, I want to skip the x:parse step and just tell x:out and all
> of the other x tags to pull data from my pre-existing pre-parsed
> DOM:
> 
> Document myDOM;  // already built by another part of the code
> 
> I understand basic xpath stuff.  But I'm not sure how to tell it to
> use a standard local java variable for the DOM.
> 
> I've tried   <x:out select="$myDOM/aaaaa/bbbbb"/>  and <x:out 
> select="${myDOM}/aaaaa/bbbbb"/>
> 
> Both give me errors that seem to say it doesn't find a DOM.
> 
> Every example I can find always assumes I want to start with a
> true non-parsed XML document.
> 
> I'm sure I'm missing something obvious.  But can someone please
> help me out with the correct syntax?

Try using <x:parse> and then dumping-out the (Java) type of the
resulting object. Perhaps JSTL uses something other than a "Document"
object (or maybe you are not naming your reference correctly).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRda5yAAoJEBzwKT+lPKRYs1MP/R2rCgZd+a93YeXH1ATn6gES
WQZpuMBaBsecTqehepMAG8iRPfFrbu+d6tk2vredHui3bi+yXZRW69nGEtNSt7kJ
sRTF3mZ3/sg+MpoMXg5Lo9iG5PxCdZIcHVWrbfTjA43nZ+84XYBLONkZnrut7qKp
BmbyvKy+uwLJ8T5xLUcfhE7Qwzv/66qCARuAcKdQSqm8Yj77SYtnr/K+DvAC9Cca
7A5c9oin3n4cs5kHOcJg10Sd3MOT+0R9PzLX1+0xBBufiDB5AWywDMYk8g7zvXiK
qHn84f+p7eBU7P+z73FhervmPrHv7DQDn57uIxQkzxuS7sX5McPsS+fOeJpnUZRw
o9vt2E2/4v8sX/OrJnmcgKX7seRjswIKQMBeHJ9/DqAa0drrPjbK9bgpxUd4VkAj
X8QRl8Mp61Jv3yTShzETJyID28rhUHRjJPgS0NNI4NwgMwFfTSAMp6Ja42YZl0rT
rVDZXtKJ6d1W7Dc0MGRxPJ+CgK91OqHUDf/OpNHe9J6ySt+nyBd3sYFmGaUp0evp
kJzg4I8w8X2tbZfAo3fLLEuFopPoDN21Tu0W73G/uKzU+6hQzi2VkPIz+x8vcn5H
JsSxT2ufxitXC++RDxFCEKle9EPY7UyptxTV2u0FIYEmKgp48lN3igXEGBIMuNH1
69I9IgFQLLvoyOuTc1jd
=z7k1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to