错误:
HTTP Status 500 - /shop.jsp (line: 7, column: 0) The value for the useBean class attribute mybean.User is invalid.
类:
package mybean;
public class User {
String thingID,shopname="",foodname="";
String pay="";
public void setThingID(String thingID) {
this.thingID = thingID;
}
public void setShopname(String shopname) {
this.shopname = shopname;
}
public void setFoodname(String foodname) {
this.foodname = foodname;
}
public void setPay(String pay) {
this.pay = pay;
}
StringBuffer watch=new StringBuffer();
public StringBuffer getwatch(){
//if(shopname.length()>0&&foodname.length()>0&&pay.length ()>0){
watch.append("
return watch;
}
}
jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">