作者TonyQ (骨头)
看板java
标题Re: [JSP ] 有关於tomcat的奇怪问题!?
时间Sun Feb 4 09:18:41 2007
※ 引述《shinmeteor (简单的生活~不简单的过活)》之铭言:
: 刚开始接触jsp..有几个奇怪且不解的问题..请多包涵
: 我jsp的环境已经建立好了..也可以正常使用(已经有测试过jsp了)
: 但是只要多一层资料夹就会出现404错误..
: 例如:
: (正常没问题)
: http://127.0.0.1:8080/ch1/form.html
: (有问题..会出现404)
: http://127.0.0.1:8080/1test/ch1/form.html
: 为什麽我只是把ch1资料夹移到1test资料夹下就会出现404错误讯息..
: HTTP Status 404 - /1test/ch1/form.html
: type Status report
: message /1test/ch1/form.html
: description The requested resource (/1test/ch1/form.html) is not available.
: 帮我解惑一下>_<"...谢谢~
这看起来像是环境配置的问题。
你确定你有放在Root吗?
如果不是放在root,
你确定你的资料夹有放在正确对应的根目录下吗?
检查一下
%Tomcat_Home%\conf\server.xml的engine、host tag吧。 :P
如果看不懂的话,再去找些入门JSP环境配置的讨论串看看。
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.practice()); | Bone
everything
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.134.27.68