奇怪的问题,各位帮忙看看(STRUTS)
hzxbl 2005-10-02 08:44:45
在SRUTS中建立一个 person类
public class PBean {
private String usName=null;
/**
* @return 返回 usname。
*/
public String getUsName() {
return this.UsName;
}
************************************************************************
在ACTION中
person.setUsName(usName);
request.setAttribute("person",person);//把PERSON类放入REQUEST
return(mapping.findForward("login"));//转向login
*************************************************************************
在admin.jsp中 读出person的usName
<logic:present name="person" scope="request">
<h2>
<bean:message key="hzxbl.welcome"/>
<bean:write name="person" property="usName"/>
</h2>
</logic:present>
*********************************************************************************
但是出来有 No getter method for property usName of bean person
我在BEAN里面有GET的方法啊~~~不知道怎么回事情~~~请各位帮忙看看。