jQuery in Action, 3rd edition
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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.
Consider Paul's rocket mass heater.
subject: Relative url problem in struts 1.1
It's not a secret anymore!