struts2.x中因变量命名错误不被注入到值栈的问题

Posted on 2013-07-28 21:29  冰天雪域  阅读(160)  评论(0编辑  收藏  举报
//I declare...
private String aBC="abc";

Then I Alt+Shift+R and S(Generate Getter/Setter) so smoothly...andEclipseGenerate like this

 

	public String getaBC() {
		return aBC;
	}

	public void setaBC(String aBC) {
		this.aBC = aBC;
	}

Check this out in jsp

++<s:property value="aBC"/>

 

nothing...damn...

So I edit Getter/Setter like this...

public String getABC() {
		return aBC;
	}

	public void setABC(String aBC) {
		this.aBC = aBC;
	}


Well done!

Copyright © 2024 冰天雪域
Powered by .NET 9.0 on Kubernetes