关于struts的简单问题!请高手指教!!
以下是我的注册页代码:
可无论怎么改,都出错,但只要把<form>块去掉就好用!请问<html:form>有什么特殊的么!
<%@ page contentType="text/html; charset=gb2312"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html locale="true">
<HEAD>
<TITLE> New Document </TITLE>
<html:base/>
</HEAD>
<BODY>
<html:errors/>
<html:form action="/saveRegAction">
<html:text property="logname" size="16" maxlength="16"/>
</html:form>
</BODY>
</html:html>
以下是我struts-config.xml配置:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
<!-- Logon form bean -->
<form-bean name="regForm"
type="com.hongye.qianjia.webapp.RegForm"/>
</form-beans>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- Edit user registration -->
<action path="/saveRegAction"
type="com.hongye.qianjia.webapp.SaveRegAction"
name="regForm"
scope="request"
input="/index.jsp">
</action>
</action-mappings>
</struts-config>
请高手指点啊!!!