http://localhost:8080/servlet/test/HelloWorld1.do
试试

解决方案 »

  1.   

    <action path="/HelloWorld1"
               type="presentation.HelloWorld1Action">
               <forward name="HelloWorld1" path="http://www.sohu.com"/>
                     </action>
    ----------------------------------------------
    你的HelloWorld1.do=“HelloWorld1”,forward name="HelloWorld1",是否是同名的原因?
      

  2.   

    to: kui(kui)
    改过来还是不行
      

  3.   

    是不是需要这些???
    我也刚学,不懂  <taglib>
        <taglib-uri>/tags/struts-bean</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/tags/struts-html</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/tags/struts-logic</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/tags/struts-nested</taglib-uri>
        <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/tags/struts-tiles</taglib-uri>
        <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
      </taglib>
      

  4.   

    把execute()改回perform()试试~
    嘻嘻~
      

  5.   

    <forward name="HelloWorld1" path="http://www.sohu.com"/>其中的path一定要像path="/..."一样,就是说通过ActionForward页面跳转要是本站页面。
    path="http://www.sohu.com"/ 在我的机子上回出现错误。
      

  6.   

    path设的是与目标URL的相对路径。
      

  7.   

    楼上说得对,好象直接进入IE还没有实验过,你最好在一个jsp也面中进入试试
      

  8.   

    你的问题主要是在/test/Hello...这块,你的应用程序文件名是什么?是test吗?
    回答了这个问题,我们再看看
      

  9.   

    先检查一下tomcat窗口有没你的系统输出“helloworld1”,有可能是forward的问题
      

  10.   

    <action path="/HelloWorld1"
               type="presentation.HelloWorld1Action">
               <forward name="HelloWorld1" path="http://www.sohu.com"/>
                     </action><forward name="HelloWorld1" path="http://www.sohu.com"/>似乎这样写
    <forward name="HelloWorld1" path="/../.."/>或把http://www.sohu.com换成自己的jsp
      

  11.   

    不能forward到其他服务器,
    可以用 <forward ... redirect="true"> 试一下
      

  12.   

    如果用
    <forward name="csdn"  path="http://www.sohu.com/" />
    报:
    java.lang.IllegalArgumentException: Path http://www.sohu.com/ does not start with a "/" character如果用:
    <forward name="csdn"  path="//www.sohu.com/" />
    报:
    message /csdn//www.sohu.com/
    description The requested resource (/csdn//www.sohu.com/) is not available.估计使用struts方式,只能在本站点内转移,我以前也没有转过别的站点
    你要转别的站点,可以用别的方式。
      

  13.   

    你看这样行不行,你先到a.jsp上,再在a.jsp上实现跳转<forward name="csdn"  path="/a,jsp" />在a.jsp里用
     <logic:redirect href="http://www.sohu.com" />
      

  14.   

    path只能指向本站点资源,不过很奇怪没有报错,呵呵