Struts cannot support relative uri ?
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]
Re: Struts cannot support relative uri ?
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]
Re: Struts cannot support relative uri ?
Do you have a html:base/ tag within your html head element? 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts cannot support relative uri ?
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]
Re: Struts cannot support relative uri ?
Try this like George said head html:base / /head Cheers Mark On Tuesday, October 28, 2003, at 03:55 PM, javen fang wrote: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts cannot support relative uri ?
good day all, I'm new to struts frame work... I'm using a property file names languages.properties instead of = ApplicationResources.properties Also I have an entry in my struts-config.xml like the following... message-resources property=3Dlanguage / I also placed the property file in WEB-INF/classes/ but it seems that the property file languages.properties is not = detected. shld I make any changes or any entry in the web.xml to make my new = property file visible I'm using web-logic6.1. pls help.. Regards, Mahin AddVal Technology Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts cannot support relative uri ?
Are you using the struts html:img tag?! Otherwise, if you only have img src=images/logo.jpg in your JSP, then the HTML that is output won't be anything other than img src=images/logo.jpg - Struts/Tomcat/or any other container/framework passes through any non-JSP tags like HTML as is. Send the exact HTML that is in your JSP and the exact HTML that is output when you load the page in a browser. Include the exact URI that you use to load the page, too. javen fang wrote: 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] -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts cannot support relative uri ?
Thanks very much. I lost this tag: html:base/ And so relative uri is OK. thanks... --- George Steimer [EMAIL PROTECTED] wrote: Do you have a html:base/ tag within your html head element? 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] - 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]