在控制台还有这些东西输出:
2003-10-20 15:30:47 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2003-10-20 15:30:47 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
2003-10-20 15:37:42 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
2003-10-20 15:37:42 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
2003-10-20 15:30:47 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2003-10-20 15:30:47 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
2003-10-20 15:37:42 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
2003-10-20 15:37:42 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
然后要把struts-config.xml放到WEB-INF/目录下面
还有要把struts.jar放到WEB-INF/lib目录下面
http://www.csdn.net/develop/Read_Article.asp?Id=20125
期待中……
你如果把form换成你自己的,那么<html:text/>就不能用了,不少Form标签必须在<html:form>中才能使用。Index.jsp
<html:form action="/secondAction" method="POST" focus="username" onsubmit="return validateSecondActionForm(this);">
<bean:message key="prompt.username"/>: <html:text property="username"/>
<br>
<bean:message key="prompt.password"/>: <html:password property="pwd" redisplay="false"/>
<br>
<html:submit property="submit" value="Submit"/><br>
<html:reset value ="Reset"/>
</html:form>
struts-config.xml
<form-beans>
<form-bean name="secondActionForm" type="secondstruts.secondActionForm" />
</form-beans>
<action-mappings>
<action name="secondActionForm" type="secondstruts.secondAction" validate="true" input="/index.jsp" scope="session" path="/secondAction" />
</action-mappings>
<form-bean name="secondActionForm"
<action name="secondActionForm"
是不是名字重复了
关注,如何解决这个问题,请高手再讲讲
■■