向
向你学习
Unregistered / Unconfirmed
GUEST, unregistred user!
这是我的login.jsp
<%@ page contentType="text/html;
charset=GB2312" %>
<html>
<head>
<title>
login
</title>
</head>
<jsp:useBean id="loginBeanId" scope="session" class="jspstudy.loginBean" />
<jsp:setProperty name="loginBeanId" property="loginName" param="tbxName" />
<jsp:setProperty name="loginBeanId" property="password"/>
<body>
<h1>
JBuilder Generated JSP
</h1>
your name is :<jsp:getProperty name="loginBeanId" property="login" />
your password is <jsp:getProperty name="loginBeanId" property="password"/>
</body>
</html>
这是loginBean
package jspstudy;
public class loginBean
{
private String Name = "";
private String Pwd="";
public loginBean()
{
}
//Access sample property
public void setLoginName(String name)
{
this.Name=name;
}
public void setPassword(String pwd)
{
this.Pwd=pwd;
}
//Access sample property
public String getLoginName()
{
return this.Name;
}
public String getPassword()
{
return this.Pwd;
}
}
这是出错消息
"login.jsp": org.apache.jasper.JasperException: Cannot find any information on property 'login' in a bean of type 'jspstudy.loginBean'
快一个小时了,请帮忙,是不是太简单了,不好意思,路径好像不对,但实在找不到在哪
<%@ page contentType="text/html;
charset=GB2312" %>
<html>
<head>
<title>
login
</title>
</head>
<jsp:useBean id="loginBeanId" scope="session" class="jspstudy.loginBean" />
<jsp:setProperty name="loginBeanId" property="loginName" param="tbxName" />
<jsp:setProperty name="loginBeanId" property="password"/>
<body>
<h1>
JBuilder Generated JSP
</h1>
your name is :<jsp:getProperty name="loginBeanId" property="login" />
your password is <jsp:getProperty name="loginBeanId" property="password"/>
</body>
</html>
这是loginBean
package jspstudy;
public class loginBean
{
private String Name = "";
private String Pwd="";
public loginBean()
{
}
//Access sample property
public void setLoginName(String name)
{
this.Name=name;
}
public void setPassword(String pwd)
{
this.Pwd=pwd;
}
//Access sample property
public String getLoginName()
{
return this.Name;
}
public String getPassword()
{
return this.Pwd;
}
}
这是出错消息
"login.jsp": org.apache.jasper.JasperException: Cannot find any information on property 'login' in a bean of type 'jspstudy.loginBean'
快一个小时了,请帮忙,是不是太简单了,不好意思,路径好像不对,但实在找不到在哪