最近学习struts2 看了下视频 怎么总是出错
public class struts2 extends ActionSupport{
private String name;
private String password;
get and set 方法
public String execute() throws Exception {
if(this.name=="sdfsd"andthis.pwd==“123”){
return SUCCESS;
}
}
}
STRUTS.XML
package
配置一下
记得action要配置正确
jsp
form