• Post Reply Bookmark Topic Watch Topic
  • New Topic

How-to use DOM document returned from a bean, with JSTL x:transform  RSS feed

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've gone through a few exercises here, and realize all params in JSTL, EL have to be scoped variables

So the typical example is ( in psuedo-code here )
import xml
import xsl
<x:transform xml="${url}" xslt="${xsl}" />

I also realize you can use x:transform without the xml param, if you choose to use the inline xml body syntax. (that works)
I also note the syntax for c:set <c:set>
<c:set var="name" scope="scope" value="expression"/> OR
<c:set var="timezone" scope="session">{body-content}</c:set> using body-content

My ? is, how do I assign a Dom Document (formerly DomDocument) to a scoped variable to use it ? I haven't been successful, so far. My choices might be something like this:
<c:set var="dom" value="mybeanDomDocument"/>
<c:set var="dom>mybeanDomDocument</c:set>
<c:set var="dom"><%= mybeanDomDocument</c:set>
pageContext.setAttribute("dom", mybeanDomDocument);
some kind of import ?
some kind of use of varDom with x:parse ??

As you can see, I'm exhausting the options, trying to come up with something that works.
Suggestions / Examples welcome; Thanks in Advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!