struts入门问题! 请教各位!
小弟初学struts, 被struts的配置问题困扰很久拉, 查了些资料拼凑出下面的代码, 可是运行总是报错! 哪位高手救救我!
目录结构:
站点根目录下:
struts1.3.5中lib目录下的所有jar包都存入\WEB-INF\lib中
\WEB-INF\classes\mt\newProblem\newProblem\action\NewProblemAction.class
\WEB-INF\web.xml
\WEB-INF\struts-config.xml
\testStruts.jsp
文件:web.xml:
<?xml version= "1.0 " encoding= "ISO-8859-1 "?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN "
"http://java.sun.com/dtd/web-app_2_3.dtd ">
<web-app>
<display-name> Struts Blank Application </display-name>
<!-- Standard Action Servlet Configuration -->
<servlet>
<servlet-name> action </servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet </servlet- class>
<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> 3 </param-value>
</init-param>
<init-param>
<param-name> detail </param-name>
<param-value> 3 </param-value>
</init-param>
<load-on-startup> 0 </load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name> action </servlet-name>
<url-pattern> *.do </url-pattern>
</servlet-mapping>
</web-app>
-----------------------web.xml结束--------
文件:struts-config.xml:
<?xml version= "1.0 " encoding= "ISO-8859-1 " ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN "
"http://struts.apache.org/dtds/struts-config_1_3.dtd ">
<struts-config>
<action-mapping>
<action path= "/test "
type= "mt.newProblem.newPorblem.action.NewProblemAction ">
<forward