Scott Merritt wrote:
> If I'm allowing users to upload images and I want to reference them without
> making them "resources", what's the best way to go? How should I build the
> path to these images? Do I need to go through the hassle of sticking
> together the host name, port, path, etc. each time or is there some method
> I'm over looking?
>
> I don't want them to be a part of a particular skin, so I think UIManager is
> out of the question.
You can put them in any directory you want under the webapp context
and than use the ContentURI tool which is place in the context.
So you could upload all your images files to
<your-webapp>/images
say
<your-webapp>/images/pooky.gif
And in your velocity templates you would would
reference that image with:
<img src="$content.getURI("images/pooky.gif")">
>
>
> Thanks...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]