Hi,

For simple workaround in the client side, you could use baseURL on the
document to resolve the resources eg: css,js stuff, assuming that those
files are located in tree folder / directory structure inside the
baseURL.

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com

On Thu, 2006-04-20 at 14:47 +0100, Dylan Browne wrote:
> Further to my original posting (which was resolved) I have another question
> regarding the locating of resources such as CSS/JS so that an SVG document
> (created in memory using the Batik DOM, and streamed via servlet to the
> browser) can access them.
> 
> For example, I currently have the following set up:
> 
> String CSS_LOCATION = "type=\"text/css\" href=\"file:///C:/SVG/style.css\"";
> 
> This works fine locally. However, if this code were to be placed in a
> webapp, the only way this would work would be if I was accessing via a
> browser on the webserver itself. All remote access would obviously fail,
> (unless the referenced file also existed locally on the client).
> 
> I understand that I could use something like:
> 
> String CSS_LOCATION = "type=\"text/css\" href=\"http://myserver:123
> /style.css\"";
> 
> But then my deployment becomes dependant on server name and port number.
> 
> Is there any way to make this reference to the location relative in the same
> way that my JSPs in this deployment have relative references to the same
> resources in the EAR file? For example:
> 
> <script src="resources/js/common.js"></script>
> 
> Thanks in advance for any help,
> 
> Kind regards,
> 
> Dylan B.
> 
>     
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to