You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sunilmanu <su...@gmail.com> on 2006/11/08 21:21:22 UTC
help : displaying Images that are stored outside the Web
application
Hi,
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 ?
any suggestions or pointers will be of great help.
Thanks,
Sunil
--
View this message in context: http://www.nabble.com/help-%3A-displaying-Images-that-are-stored-outside-the-Web-application-tf2597572.html#a7246079
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: help : displaying Images that are stored outside the Web application
Posted by Dennis Sinelnikov <de...@augustschell.com>.
Craig St Jean wrote:
> When using JSPs or PHP this would be accomplished by setting the
> content-type and then outputting the contents of the picture. I could
> then have something like img src="displayimage.jsp?image=whatever.png".
> I'm not sure exactly how to do it in Tapestry but I would assume it
> would be something like an inject page as long as you set the content type.
>
> Good luck.
>
> On Nov 8, 2006, at 3:21 PM, sunilmanu wrote:
>
>>
>> Hi,
>>
>> 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 ?
>>
>> any suggestions or pointers will be of great help.
>>
>> Thanks,
>> Sunil
>> --View this message in context:
>> http://www.nabble.com/help-%3A-displaying-Images-that-are-stored-outside-the-Web-application-tf2597572.html#a7246079
>>
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Image.html
If you want to serve your images outside of your web app, you can define
image as a external asset, instead of a context asset.
hth,
Dennis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: help : displaying Images that are stored outside the Web application
Posted by Craig St Jean <va...@earthlink.net>.
When using JSPs or PHP this would be accomplished by setting the
content-type and then outputting the contents of the picture. I could
then have something like img src="displayimage.jsp?
image=whatever.png". I'm not sure exactly how to do it in Tapestry
but I would assume it would be something like an inject page as long
as you set the content type.
Good luck.
On Nov 8, 2006, at 3:21 PM, sunilmanu wrote:
>
> Hi,
>
> 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 ?
>
> any suggestions or pointers will be of great help.
>
> Thanks,
> Sunil
> --
> View this message in context: http://www.nabble.com/help-%3A-
> displaying-Images-that-are-stored-outside-the-Web-application-
> tf2597572.html#a7246079
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: help : displaying Images that are stored outside the Web application
Posted by Phillip Rhodes <sp...@rhoderunner.com>.
I think you want to use the "@Any" component
the following example depends on you have a page method called
"getImageUrl()"
<img jwcid="@Any" src="ognl:page.imageUrl">Image displayed here</img>
sunilmanu wrote:
>Hi,
>
>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 ?
>
>any suggestions or pointers will be of great help.
>
>Thanks,
>Sunil
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: help : displaying Images that are stored outside the Web
application
Posted by sunilmanu <su...@gmail.com>.
hi guys,
i got it to working. Thanks for all the input on this matter.
I am using @Any for the Image tag and included a ImageService that will read
the image locally and then Stream it back to browser.
thanks,
Sunil
sunilmanu wrote:
>
> Hi,
>
> 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 ?
>
> any suggestions or pointers will be of great help.
>
> Thanks,
> Sunil
>
--
View this message in context: http://www.nabble.com/help-%3A-displaying-Images-that-are-stored-outside-the-Web-application-tf2597572.html#a7262343
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org