Eclipseを使ったJavaプログラミングを勉強しています。
HTTPステータス 404 - Not Found
Type ステータスレポート
メッセージ /jsp/
Type ステータスレポート
説明 The origin server did not find a current representation
for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.7
のエラーが出ています。同じ質問がteratailにあったのでそれを見て
エラーを解消しようと思っています。
そこにlogが載っているんですがそのlogの取り出し方を教えてください。
ファイル構成は動的WebプロジェクトSampleWebProj/WebContent/question5_06.html,
sampleJSP5_07.jsp です。
お願い致します。
//question5_06.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>名前を教えて</title> <style> h1 {font-size: 14pt; font-weight:bold; background-color:#DDF; padding:3px;} </style> </head> <body> <h1>入力フォーム</h1> <p>名前を入力 : </p> <form action="answer.jsp" method = "post"> <input type="text" size="20" name="text1"> <input type="submit" Value="送信" > </form> </body> </html> //sampleJSP5_07.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %> <% request.setCharacterEncoding("UTF-8"); String ans =request.getParameter("text1"); %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>sampleJSP5_07</title> <style> h1 {font-size: 14pt; font-weight:bold; background-color:#DDF; padding:3px;} </style> </head> <body> <h1>Thank you.</h1> <p>こんにちは、<%= ans %>さん!</p> </body> </html>
回答2件
あなたの回答
tips
プレビュー