Struts 里的javabean对象的大小写问题?
Javcs 2005-07-27 03:35:37 <%@ page contentType = "text/html;charset=UTF-8" language = "java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix = "bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix = "html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix = "logic" %>
<html:html locale="true">
<head>
<title><bean:message key="hello.jsp.page.heading"/></title>
<html:base/>
</head>
<body bgcolor = "Red" > <P>
<h2><bean:message key="hello.jsp.page.heading"/></h2><P>
<html:errors/><p>
<logic:present name = "personbean" scope = "request">
<h2>
<bean:message key="hello.jsp.page.hello"/>
<bean:write name="personbean" property="userName"/>!<p>
</h2>
</logic:present>
<html:form action="/HelloW.do" focus="userName">
<bean:message key="hello.jsp.prompt.person"/>
<html:text property="userName" size="16" maxlength="16"/><br>
<html:submit property="submit" value="提交"/>
<html:reset/>
</html:form><br>
<html:img page="/struts-power.gif" alt="Powered by Structs"/>
</body>
</html:html>
为什么
<h2>
<bean:message key="hello.jsp.page.hello"/>
<bean:write name="personbean" property="userName"/>!<p>
</h2>
里的javabean 必须要小写了?写成PersonBean就不能完成功能了?