File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Relative url problem in struts 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Relative url problem in struts 1.1" Watch "Relative url problem in struts 1.1" New topic

Relative url problem in struts 1.1

yogi maheshnath
Ranch Hand

Joined: Jan 07, 2008
Posts: 30
I am using struts 1.1,there is images folder for all the images in my project.
when I am using below code,image is displaying in google chrome,but not in mozilla or
if i use " <table background="../images/image2486.gif">" ,it works in IE.

So,to get rid of above problem i have define context-param in web.xml with Variable Site and given value in web.xml
an then used follwoing code,but still problem is there

Please help me in solving this Problem

Thanks&Regards<br />Yogi MaheshNath
David Newton

Joined: Sep 29, 2008
Posts: 12617

This has nothing to do with Struts.

The "background" attribute is non-standard; I wouldn't recommend using it.
I agree. Here's the link:
subject: Relative url problem in struts 1.1
jQuery in Action, 3rd edition