你可以把你的struts-config.xml和web.xml中的内容贴出来

解决方案 »

  1.   

    标签问题的话,一般就是你在配置文件中没有注册这些标签,以及没有将相关的tld文件拷贝到你的web应用程序下
      

  2.   

    不过基本的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>
      

  3.   

    具体的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>