楼主看看下面的连接。
http://expert.csdn.net/Expert/topic/2924/2924229.xml?temp=9.070987E-02

解决方案 »

  1.   

    同意一楼的
    看一下你的CONFIG文件
      

  2.   

    struts-config.xml是自动生成的啊,应该没什么问题
    我把struts下的lib的*.jar文件都拷到tomcat下的/common/lib里,可是tomcat就不能启动啊有谁知道告诉小弟我一下啊
      

  3.   

    一个可能的原因是你引用的formbean没有保存在request或者session等对象中
      

  4.   

    我把struts下的lib的*.jar文件都拷到tomcat下的/common/lib里,可是tomcat就不能启动啊?
    不会吧?如果不拷到下面能不能启动呢?我想你还是应该把struts-config.xml和web.xml都再检查一下。
      

  5.   

    请问lhbf(牧野),我只看见可以把action设置为request或者session。formbean没保存在request或者session等对象中,该如何设置了。
      

  6.   

    我的struts-config.xml和web.xml是easystruts自动配置的,应该没问题
    struts-config.xml的代码是
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>
        <data-sources />
        <form-beans>
            <form-bean name="HelloWordForm" type="test.struts.form.HelloWordForm">
                <form-property name="word" type="java.lang.String" />
            </form-bean>
        </form-beans>
        <global-exceptions />
        <global-forwards />
        <action-mappings>
            <action
                attribute="HelloWordForm"
                name="HelloWordForm"
                path="/helloword"
                type="test.struts.action.HelloWordAction"
                validate="false">
                <forward name="success" path="/HelloWord.jsp" />
            </action>
        </action-mappings>
        <controller />
        <message-resources parameter="test.struts.ApplicationResources" />
    </struts-config>
      

  7.   

    是不是因为我用的是2000Server,谁用的是xp的,有没有这样的问题啊???
      

  8.   

    将STRUTS的API中的LIB全部COPY到PROJECT的web-inf/lib下