>but if in left.jsp include struts tags, or it mapping >from struts action, then relative uri will fail, and >"absolute" uri is required: ><img src="/asales/pages/images/logo.jpg"/>
If in this condition, I do like this: <img src="images/logo.jsp"/> then html is : "http:/localhost/images/logo.jsp" so I think "asales/pages/" is required. --- "Ruth, Brice" <[EMAIL PROTECTED]> wrote: > If relative URIs work or don't work is dependent on > the HTML being > produced, more than anything else, since its the > browser that then has > to request the correct image from the server. > > What is the HTML being produced in the cases where > you don't see it working? > > javen fang wrote: > > >Hi, all. I am fajaven from > matrix(www.matrix.org.cn) > >in China. > > > >I wonder it seems like Struts cannot support > relative > >uri. > > > >In tomcat 5.0 , my webapp looks like: > >tomcat/webapps/asales > > > >Two files are: > >tomcat/webapps/asales/pages/left.jsp > >tomcat/webapps/asales/pages/images/logo.jpg > > > >Normally, in left.jsp, I use logo.jpg, like this: > ><img src="images/logo.jpg"/> > > > >but if in left.jsp include struts tags, or it > mapping > >from struts action, then relative uri will fail, > and > >"absolute" uri is required: > ><img src="/asales/pages/images/logo.jpg"/> > > > >You know, relative uri cannot be used is not > >convinient very much. > > > >How can I solve this question? > > > >Thanks. > > > >javen fang from matrix > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam > protection around > >http://mail.yahoo.com > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > -- > Brice D. Ruth > Sr. IT Analyst > Fiskars Brands, Inc. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]