2 u010651277 u010651277 于 2015.07.14 16:15 提问

Invalid property in <set> 出错请教

testTarget.jsp

<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>








no stuNum
/c:out

Student.java

package test;

public class Student {
private String stuNum;
private String stuName;
private String stuPwd;

public Student(){

}

public String getStuNum() {
return stuNum;
}

public void setStuNum(String stuNum) {
this.stuNum = stuNum;
}

public String getStuName() {
return stuName;
}

public void setStuName(String stuName) {
this.stuName = stuName;
}

public String getStuPwd() {
return stuPwd;
}

public void setStuPwd(String stuPwd) {
this.stuPwd = stuPwd;
}
}

运行时总是提示出错:
javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Invalid property in : "stuNum"
请大家帮我看一下到底哪里出错了,谢谢!

3个回答

kris234seth
kris234seth   2015.07.14 16:32

jsp页面不全啊 ,错误在jsp里

u012216727
u012216727   Ds   Rxr 2015.07.14 16:43

这个错是你的jsp页面的stuNum的属性值设置不对造成的

CSDNXIAON
CSDNXIAON   2015.07.16 15:28
Csdn user default icon
上传中...
上传图片
插入图片