Hi There,

I'm working on a Struts powered site right now and have come up against a
bit of a problem. I'm using the templating tags to give my pages a uniform
look and feel. However I'd like to be able to insert images into my
template. I figured the best way would be as follows:

<template:insert template='/template.jsp'>
  <template:put name='image' content='/images/example.gif' direct='true' />
</template:insert>

But this begs the question, how do you insert the content into the src
attribute of the image tag? I suppose I could put the whole image tag into
the template but I'd rather avoid embedding content in the above code.

Can anyone suggest a best way forward?

Many thanks,

-James

Reply via email to