-
1. Re: context path resolution
rndgatewaynet Feb 25, 2003 7:48 AM (in response to muralikri_bng)You could use relative URLs from the start.
(e.g ../images/foo.png).
You can always write a script to identify these strings and convert them
accordingly. -
2. Re: context path resolution
muralikri_bng Feb 25, 2003 8:41 AM (in response to muralikri_bng)Hi Everybody,
can't we do anything without tapering with the code.
Thanks
Murali -
3. Re: context path resolution
prpatel Feb 25, 2003 9:40 AM (in response to muralikri_bng)Murali,
a best practice when developing websites or webapps is you *never* hard code any absolute references/paths in your HTML, JSP, etc. Always use relative paths!
However, you could deploy the necessary hard-coded dirs/resources in separate locations (wars). For example, if you have /images/* as the location of your images, put your images into the root of a new webapp and deploy it as /images.
BUT, you should just take the time now and refactor all of your code and do it properly, using relative paths.
cheers
Pratik