fanboy2k
发贴: 15
积分: 0
|
于 2004-07-26 14:38
谢谢楼上的
但是我这里封装的方式是这样的:
class foo{ private String name; private sex sexObj=new sex(); public sex getSex{ return sexObj; }
} class sex{ private String sexid; private String sexStr; public String getSexStr{ return sexStr; } }
我现在给页面的是foo,所以我的页面中这样写: <html:select name="foo" property="sex"> <html:options collections="sex" property="sexid" labelProperty="sexStr" /></html:select>
但是调试时总是提示“javax.servlet.jsp.JspException: Cannot find bean under name sex”
请问我该如何解决这个问题?先谢谢了。
|