「Java+MySQL+Tomcatで始めるサーバアプリケーション開発入門」P406にあるload_produt.jspが動かず、悩んでいます。
エラー内容は以下の通りです。
JSPファイル: /load_product.jsp の中の5行目でエラーが発生しました
The method load(int) is undefined for the type ProductManage
2: <jsp:useBean id="product" class="shop.ProductManage" scope="session"/>
3: <%
4: int intId=Integer.parseInt(request.getParameter("id"));
5: product.load(intId);
6: %>
7: <jsp:forward page="show_product.jsp"/>
どうかご教授願います。
			
	エラー内容は以下の通りです。
JSPファイル: /load_product.jsp の中の5行目でエラーが発生しました
The method load(int) is undefined for the type ProductManage
2: <jsp:useBean id="product" class="shop.ProductManage" scope="session"/>
3: <%
4: int intId=Integer.parseInt(request.getParameter("id"));
5: product.load(intId);
6: %>
7: <jsp:forward page="show_product.jsp"/>
どうかご教授願います。
				投稿:st[slx8uovv]/2009年 10月 30日 14時 17分
				
					/更新:2009年 10月 30日 14時 18分
				
				
			
		
                    
					RE:「Java+MySQL+Tomcatで始めるサーバアプリケーション開発入門」P406
					
				
					 by 竹形 誠司[takegata]
					
				
					
竹形です。こんにちは。
The method load(int) is undefined for the type ProductManage
となっているので、ProductManageが正しくコンパイルできていない可能性があります。
ご利用の環境(OS、Java、MySMySQL、Tomcatのバージョンなど)は本書の指定通りでしょうか。サンプルコードは、本書が書かれた当時の環境を前提としていますので、新しい環境では動作しない部分が多くあると思います。
					
			The method load(int) is undefined for the type ProductManage
となっているので、ProductManageが正しくコンパイルできていない可能性があります。
ご利用の環境(OS、Java、MySMySQL、Tomcatのバージョンなど)は本書の指定通りでしょうか。サンプルコードは、本書が書かれた当時の環境を前提としていますので、新しい環境では動作しない部分が多くあると思います。
						投稿:竹形 誠司[takegata]/2009年 10月 31日 05時 20分
						
							/更新:2009年 10月 31日 06時 54分
						
						
					
				



