这个就是不运行,怎么办呀??

错误:
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("

");
watch.append("td width=150 Align=Center>");
watch.append(shopname);
watch.append("");
watch.append("");
watch.append("td width=150 Align=Center>");
watch.append(foodname);
watch.append("");
watch.append("");
watch.append("td width=150 Align=Center>");
watch.append(""+pay);
watch.append("");
watch.append("");
shopname="";
foodname="";
pay="";
return watch;

}
}

jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ page import="mybean.*" %>






点餐选择页面

商家名称:
商品名称:
价格:



1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问