velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl <thomas.vand...@tewisoft.de>
Subject Re: load a file through javascript
Date Tue, 06 Jan 2009 08:47:10 GMT
Sorry, wrong sender.

jill han wrote:
> chart1.setXMLFile("$content.getURI('servlet/nequals1/template/portal,dat
> a,data.xml')");
[...]
> AnyChart.swf is read fine. However, for some reason, the data.xml file
> couldn't be read properly. It ended up with IO error.

I'd use "$link.setPage('portal,data,data.xml')" for the link. $content
is for static content only.

Bye, Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message