关于jsp我无法解决的bug
package userpackage;
public class User {
private String userID;
private String userName;
private String password;
public User(String userID,String name,String password)
{
setUserName(name);
setPassword(password);
setUserID(userID);
}
public String getUserID(){
return userID;
}
public String getUserName(){
return userName;
}
public String getPassword(){
return password;
}
public void setUserName(String name){
this.userName=name;
}
public void setUserID(String userid){
this.userID=userid;
}
public void setPassword(String password){
this.password=password;
}
public static void initialize(){
UserDA.initialize();
}
public static User find(String userID) throws Exception{
return UserDA.find(userID);
}
public static void terminate(){
UserDA.terminate();
}
}
[解决办法]
${user.userName } 改成 <%=user.getUsername %>