请教一个有关struts的问题。 你可以把你的struts-config.xml和web.xml中的内容贴出来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 标签问题的话,一般就是你在配置文件中没有注册这些标签,以及没有将相关的tld文件拷贝到你的web应用程序下 不过基本的web.xml配置你可以参考我下面的:<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>helloapp</display-name> <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> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>hello.jsp</welcome-file> </welcome-file-list></web-app> 具体的struts-config.xml配置你可以参考下面:<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config> <form-beans> <form-bean name="HelloForm" type="hello.HelloForm" /> </form-beans> <action-mappings> <action path="/HelloWorld" type="hello.HelloAction" name="HelloForm" scope="request" validate="true" input="/hello.jsp"> <forward name="SayHello" path="/hello.jsp" /> </action> </action-mappings> <message-resources parameter="hello.application" /> </struts-config> 求点有没有S2SH的项目视频 struts2问求助。浪曦第3节的课程,实在是调试不成功啊…… SSH中的hibernate两表增加问题 hibernate QBE如何实现多表查询 新手提问:关于freemarker生成静态文件的问题? tomcat和resin的中文问题 linux tomcat 远程部署web项目问题 ContextLoaderListener 如何在struts1.0中调用配置好的数据源 请问一个关于在weblogic中调用EJB的问题 高薪诚聘JAVA开发人员或者面试题目 eclipse中运行Spring出错 servlet链是什么啊?
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<display-name>helloapp</display-name>
<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>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>hello.jsp</welcome-file>
</welcome-file-list>
</web-app>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="HelloForm" type="hello.HelloForm" />
</form-beans>
<action-mappings>
<action path="/HelloWorld" type="hello.HelloAction" name="HelloForm" scope="request" validate="true" input="/hello.jsp">
<forward name="SayHello" path="/hello.jsp" />
</action>
</action-mappings>
<message-resources parameter="hello.application" />
</struts-config>