PWC6197: An error occurred at line: 15 in the jsp file: /searchresult.jsp PWC6199: Generated servlet error: cannot find symbol symbol: class Food location: class org.apache.jsp.searchresult_jsp内部サーバーエラー500データベースと何か関係はありますか?どうすれば解決できますか?
PWC6197: An error occurred at line: 15 in the jsp file: /searchresult.jsp PWC6199: Generated servlet error: cannot find symbol symbol: class Food location: class org.apache.jsp.searchresult_jsp
PWC6197: An error occurred at line: 22 in the jsp file: /searchresult.jsp PWC6199: Generated servlet error: cannot find symbol symbol: class Food location: class org.apache.jsp.searchresult_jsp
これは私のコードを何らかの理由で実行した後のものです。それは私のデータベースとは何かを持っていますか?そうでない場合は、私はこれは、あなたは
を入力し、あなたのJSPファイルにインポートを追加する必要があり、私のFood.Java
package sg.edu.nyp;
import java.io.Serializable;
/**
*
* @author VN7-517G-73XW
*/
public class Food implements Serializable{
public static final long serialVersionUID = -1L;
private String itemName;
private double price;
private String restaurant;
public Food()
{
}
public String getItemName() {
return itemName;
}
public double getPrice() {
return price;
}
public String getRestaurant() {
return restaurant;
}
public void setItemName(String itemName) {
this.itemName = itemName;
}
public void setPrice(double price) {
this.price = price;
}
public void setRestaurant(String restaurant) {
this.restaurant = restaurant;
}
}
ああ私はその上にそれを追加することを忘れていた – user8214956
それはクラスを見つけられませんでした。それは瓶の中にいますか?容器に入っている瓶ですか? – user7294900
申し訳ありません瓶がどういう意味ですか? – user8214956