※ 引述《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