I know you have already found a solution to this, but have you tried
something similar to the code snippet below? It's common in the sample
jsps from magnolia.:
<jsp:scriptlet>
<![CDATA[
out.print( "<a href=\"" + url + "\">" + linkBody + "</a>" ) ;
]]>
</jsp:scriptlet>
--David
(Micah Klitgaard) wrote:
Hi there,
I want to produce a dynamic href tag. In non-XML JSP it looks like this:
<%= "<a href='" + url + "'>" + linkTxt + "</a>" %>
But when I use out.write in <jsp:scriptlet></jsp:scriptlet> I receive
following error:
- Body of scriptlet element must not contain any XML elements. -
Then I tried to use different JSTL tags - here is one of them:
<c:out value="<a href='${paragraph.title}'></a>"/><br/>
This produced following error:
- c:out" must not contain the "<" character.
So clearly I can't use any of these. How can it then be done without writing
my own tld?
Bests,
Micah
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------