On Wed, Jan 4, 2012 at 9:16 PM, Suma <mendons...@gmail.com> wrote:
> I am a newbie to Tapestry. I need help on how to display the Images stored
> outside the Web application.
> Say my application HTML path -->
> c:/jboss/deploy/webapps/TapestryApp/Home.html
> But Images are stored outside--> : c:/appImages/test1.jpeg
> How can I load the Image dynamically in the SRC attribute of Image tag ?
> Please giude me :(

One of the simplest options is to create a virtual context mapping in
your application container, e.g. images/ -> c:/appImages/. Then you'd
just use "/images/test1.jpeg" as the value in your src attribute (for
example). This is not a Tapestry-specific question.

Kalle

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to