Hi i can access the folder from url

http://localhost:8080/ui/images/JavaTemp2261198016333434327.jpg


i am using something like

<img src='<s:url value="${userImage}"/>' height="140" width="120"
style="float: right;padding-right: 45px"></img>


but this returns me
images/JavaTemp2261198016333434327.jpg

not the relative url using context
can u just help me out how should i deal with the s:url tag

thanks in advance



On Fri, May 14, 2010 at 11:33 AM, Upasana Sharma <sharma...@gmail.com>wrote:

> Hi
>
> I have a scenario where i create a temporary dynamic image file from the
> database and try to show it on my jsp.
> The file url shows the image properly, but when in jsp , my browser says
> that "Firefox doesn't know how to open this address, because the protocol
> (d) isn't associated with any program"
>
> the url i get is like
>
> D:\myWorkspace\ui\WebContent\images\JavaTemp2261198016333434327.jpg, that
> is my struts project folder.
>
> How can i make the image accessible to my jsp.
>
> --
> Thanks and Regards
> Upasana Sharma

Reply via email to