on 10/27/2000 6:14 AM, "Riley, Cameron" <[EMAIL PROTECTED]> wrote:
>
> How do people use templates to display static data? I am using WebMacro (for
> now) and am pointing to images in the template files in the manner;
>
> <img
> src="$data.getServerScheme()://$data.getServerName():$data.getServerPort()/c
> ontext/images/imagename.jpg">
GROSS!
Why not make a DynamicURI object for your images and just put that in there
instead?
$image.setImage("foo.jpg")
Then, within your $image object, build up the above URI.
> With that sort of URL there is a Turbine.handleException, as it is looking
> for an images template. What is the way around this?
No, that is wrong. It isn't looking for an images template at all.
> Also is there a way to capture the Tomcat context without having to parse
> ServerData.scriptName()?
I believe it is:
req.getContext()
-jon
--
http://scarab.tigris.org/ | http://noodle.tigris.org/
http://java.apache.org/ | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/ | http://www.sourcexchange.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]