Hey Brian,

Why not just make it a relative path instead?

If your directory structure is like this:

/ct/jsp/..
/ct/style/..

Do this:

if(style == null) { style = "../style/classic.css"; }

Leon Palermo
Zedak Corporation
Valhalla, NY

> Hello,
>
> I'm running Tomcat 3.2b6 in standalone mode I get the same error written
to
> my console for every page.  I use CSS on my site and each page pulls in
the
> css.  It clearly gets the link because the site is rendered properly but I
> get the following exception:
>
> 2000-10-20 08:49:57 - Ctx( /ct ): IOException in: R( /ct +
> /style/classic.css + null) Connection aborted by peer: socket write error
>
> Am I doing something wrong?  Here is my code in the jsp:
>
> <link rel="stylesheet" href="<%= style %>" type="text/css">
>
> where style is:
>
> String srcbase = new URL(request.getScheme(),
> request.getServerName(),
> request.getServerPort(),
> request.getContextPath()).toString();
> String style =
> (String)request.getSession().getAttribute("ism.site.style");
> if(style == null) { style = srcbase + "/style/classic.css"; }
>
>
> thanks,
>
> brian
>
> <signature>
> <name>brian zimmer</name>
> <email>bzimmer <at/> ignitemedia <dot/> com</email>
> <voice>773.293.4344</voice>
> </signature>

Reply via email to