You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yansheng Lin <ya...@isogis.com> on 2003/11/20 18:51:30 UTC
Path not found problem.
My setting:
- Tomcat-Standalone
- <Context
className="org.apache.catalina.core.StandardContext"
cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true"
crossContext="false"
debug="0"
docBase="C:\Web\development\eclipse\workspace\j2ee-test\web"
mapperClass="org.apache.catalina.core.StandardContextMapper"
path="/j2ee"
privileged="false"
reloadable="false"
swallowOutput="false"
useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper">
- Directory structure:
j2ee-test
|- doc
|- src
|- web
|- jsp
|testMain.jsp
|- styles
|global.css
|- WEB-INF
|...
And here is the problem. In my testMain.jsp page, I have:
<style type="css/text" src="../styles/global_style.css">
<style type="css/text" src="../styles/elements.css">
<style type="css/text" src="../styles/navigation.css">
But I have to comment out these three lines in order for the page to be
displayed in IE, otherwise IE doesn't display anything(not even errors), while
Mozilla just ignores it.
I tried both http://localhost:8080/j2ee/jsp/ and
http://localhost:8080/j2ee/styles/, I can see my files under that directory. I
also tried to play with the '..' a bit, but none worked.
Anyone see the problem?
Thanks in advance!
-Yan
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Path not found problem.
Posted by Harry Mantheakis <ha...@mantheakis.freeserve.co.uk>.
Hello
This:
<style type="css/text" src="../styles/global_style.css">
Should read:
<style type="css/text" href="../styles/global_style.css">
The devil is in the details :-)
Harry Mantheakis
London, UK
> Sorry directory should be, (typo):
>
> - Directory structure:
> j2ee-test
> |- doc
> |- src
> |- web
> |- jsp
> |- testMain.jsp
> |- styles
> |- global_style.css
> |- ....
> |- WEB-INF
> |...
>
>
> -----Original Message-----
> From: Yansheng Lin [mailto:yansheng.lin@isogis.com]
> Sent: Thursday, November 20, 2003 10:52 AM
> To: 'Tomcat Users List'
> Subject: Path not found problem.
>
>
> My setting:
>
> - Tomcat-Standalone
> - <Context
> className="org.apache.catalina.core.StandardContext"
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper"
> cookies="true"
> crossContext="false"
> debug="0"
> docBase="C:\Web\development\eclipse\workspace\j2ee-test\web"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> path="/j2ee"
> privileged="false"
> reloadable="false"
> swallowOutput="false"
> useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper">
> - Directory structure:
> j2ee-test
> |- doc
> |- src
> |- web
> |- jsp
> |testMain.jsp
> |- styles
> |global.css
> |- WEB-INF
> |...
>
> And here is the problem. In my testMain.jsp page, I have:
> <style type="css/text" src="../styles/global_style.css">
> <style type="css/text" src="../styles/elements.css">
> <style type="css/text" src="../styles/navigation.css">
>
> But I have to comment out these three lines in order for the page to be
> displayed in IE, otherwise IE doesn't display anything(not even errors), while
> Mozilla just ignores it.
>
> I tried both http://localhost:8080/j2ee/jsp/ and
> http://localhost:8080/j2ee/styles/, I can see my files under that directory.
> I
> also tried to play with the '..' a bit, but none worked.
>
> Anyone see the problem?
>
> Thanks in advance!
>
> -Yan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Path not found problem.
Posted by Yansheng Lin <ya...@isogis.com>.
Sorry directory should be, (typo):
- Directory structure:
j2ee-test
|- doc
|- src
|- web
|- jsp
|- testMain.jsp
|- styles
|- global_style.css
|- ....
|- WEB-INF
|...
-----Original Message-----
From: Yansheng Lin [mailto:yansheng.lin@isogis.com]
Sent: Thursday, November 20, 2003 10:52 AM
To: 'Tomcat Users List'
Subject: Path not found problem.
My setting:
- Tomcat-Standalone
- <Context
className="org.apache.catalina.core.StandardContext"
cachingAllowed="true"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true"
crossContext="false"
debug="0"
docBase="C:\Web\development\eclipse\workspace\j2ee-test\web"
mapperClass="org.apache.catalina.core.StandardContextMapper"
path="/j2ee"
privileged="false"
reloadable="false"
swallowOutput="false"
useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper">
- Directory structure:
j2ee-test
|- doc
|- src
|- web
|- jsp
|testMain.jsp
|- styles
|global.css
|- WEB-INF
|...
And here is the problem. In my testMain.jsp page, I have:
<style type="css/text" src="../styles/global_style.css">
<style type="css/text" src="../styles/elements.css">
<style type="css/text" src="../styles/navigation.css">
But I have to comment out these three lines in order for the page to be
displayed in IE, otherwise IE doesn't display anything(not even errors), while
Mozilla just ignores it.
I tried both http://localhost:8080/j2ee/jsp/ and
http://localhost:8080/j2ee/styles/, I can see my files under that directory. I
also tried to play with the '..' a bit, but none worked.
Anyone see the problem?
Thanks in advance!
-Yan
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org