1-Use ContextImage for context-relative images?
2-Use
WebMarkupContainer container = new WebMarkupContainer("img");
container.add(new AttributeModifier("src", new Model<String>("external URL")));
for external images?
Ernesto
On Fri, Dec 10, 2010 at 9:31 PM, Sky <[email protected]> wrote:
> I would like to have something like this:
> <ul>
> <li> (the link to a URL not on my site)
> <img src=”http://cnn.com/cnnlogo.jpg”/>
> </li>
> <li> (full link to the image URL within my app - without any relative
> paths, etc)
> <img src=”http://mywebapp.com/img/mylogo.jpg”/> (The image will be
> stored in webapps/img/mylogo.jpg directory in tomcat)
> </li>
> <li> (full link to the image URL without server name)
> <img src=”/img/mylogo.jpg”/>
> </li>
> </ul>
>
> Thank you.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]