cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Stouffs <alexandre.stou...@oqibo.com>
Subject dynamic link href
Date Wed, 09 Aug 2000 15:55:45 GMT
Hello,

I am trying to build an link dynamically in a <xsp:logic>

<xsp:logic>

String url = "<"+a 
href=\"article_list.xml?newspaperId=\""+anArticle.getId()+">"+"anArticle.getTitle()"+</a>";
[..]
          <!-- and then using it-->
<xsp:expr>url</xsp:expr>
[..]
</xsp:logic>

Executing the xsp,  the exception "org.xml.sax.SAXParseException: The value 
of attribute "href" must not contain the '<' character. ......" is raised.

What is the right way ?

Thank you very much.
Alex


Mime
View raw message