struts关于html:text错误
很简单但就是报错
The server encountered an internal error () that prevented it from fulfilling this request.
配置那边都没问题,就
单单这句放在jsp中也会报错
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:text property="user" size="16" maxlength="18"/>
------解决方法--------------------------------------------------------
单这句肯定要报错:
<html:text/>一定要在<html:form/>里
------解决方法--------------------------------------------------------
Invalid path /saveRegister was requested
这个错误我很容易解决的,你仔细看一下肯定有一个重复的请求!.刚才我也出现这样的报错了!
------解决方法--------------------------------------------------------
怎么弄的这么复杂啊
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>com.ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>4</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>9</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Application Tag Library Descriptor -->