1.先确定下,如果你的页面能够正常跳转说明问题不在struts配置上
2.第一条能够正常过来,如果是单纯页面没有值就去找你的actionFormBean
纠正你几个地方
hellowordactionform hellowordactionform = (hellowordactionform)
                                                  actionForm;
以上写法,根本无法区分:),这是个很不好的习惯
在页面处把:<META content="text/html; charset=gb2312" http-equiv=Content-Type>
给去掉

解决方案 »

  1.   

    stuts-config的配置:
    <form-beans>
        <form-bean name="hellowordactionform" type="yang.hellowordactionform" />
    </form-beans><action input="/这里最好写你的web全路径" name="hellowordactionform" path="/hellowordaction" scope="request" type="yang.hellowordaction" validate="这个地方如果你有验证就写true,否则就false">
          <forward  name="success" path="/jsp20.jsp"  />
        </action>
      </action-mappings>
      

  2.   

    没有问题,我试过了,你在IE里面访问应该有输出的!
    另外,你写JSP页面时注意格式规范,struts标签不要乱加空格(如<html:html >和</html:html >),我把你JSP页面考过来JB9根本编译不了,说是tag nesting error。改正上面几个标签运行正常!
      

  3.   

    "tag nesting error"标签嵌套错误!!:)
      

  4.   

    建议楼主可以这样找出问题:把肯定没错的代码写到jsp中,能正确显示
    再将其他的代码往页面上写,如果有错误,自然是新加的代码的问题,然后仔细的看这段代码
    如果有错误提示,就更好办了,希望你早些把问题解决:)
      

  5.   

    还没解决吗?说过了你的程序除了struts标签有点问题外,其余的地方均正常(不谈代码规范),我把你的代码考下来都试过了,你只要把JSP页面那几个标签改正一下即可^_^
      

  6.   

    要是就为这一点问题在这里花上几天或个把星期的时间,那真是太可惜这些美好的时光了(可否试试用JavaWebStudio的Struts文件向导?也许对初学者有些帮助)。
    http://dev.csdn.net/user/kui
    http://javaweb.51.net/
    http://javawebStudio.51.net/下载《Struts开发实例》地址:
    http://www.infoxa.com/asp/book/xxnr.asp?id=1333
      

  7.   

    我找到错误了,编译时报错
    严重: Parse Error at line 3 column 22: The content of element type "tiles-definitions" is incomplete, it must match "(definition)+".
    org.xml.sax.SAXParseException: The content of element type "tiles-definitions" is incomplete, it must match "(definition)+".
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      

  8.   

    有一个实例我运行成功的http://www.yesky.com/SoftChannel/72342371961929728/20040423/1790973.shtml
    文中用的是JB9,都是用JB中向导开发的多,输入的代码不多,你参照那来运行下