http://localhost:8080/servlet/test/HelloWorld1.do
试试
试试
解决方案 »
- 李刚的《疯狂Java讲义》怎么样?
- 关于Spring jdbctemplate的问题
- 日志问题---要命
- javamail 不通过邮箱 发送信息
- ★★★★★请求了一个Hibernate问题★★★★★
- 一张图纸跳转到另一张图纸
- 使用Spring,应用服务器相关问题.
- 客户端调用webservice时报错,但在IE里可访问WSDL XML文件
- 兄弟我在搞EJB和JAVA数据库编程,在看<EJB>,希共同探讨
- zookeeper+dubbo+spring远程服务调用时报下边的错,感觉像是jar包的问题,但就是找不到,求大神帮看
- 哪位大侠有mailet开发经验,请指教!
- 再放100分!!!up有分!感谢大家的帮助!出现新问题:jdom为什么不能解析<xsl:for-each select="test[position() mod $cols = 1]">和<xsl:for-
type="presentation.HelloWorld1Action">
<forward name="HelloWorld1" path="http://www.sohu.com"/>
</action>
----------------------------------------------
你的HelloWorld1.do=“HelloWorld1”,forward name="HelloWorld1",是否是同名的原因?
改过来还是不行
我也刚学,不懂 <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>
嘻嘻~
path="http://www.sohu.com"/ 在我的机子上回出现错误。
回答了这个问题,我们再看看
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
可以用 <forward ... redirect="true"> 试一下
<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方式,只能在本站点内转移,我以前也没有转过别的站点
你要转别的站点,可以用别的方式。
<logic:redirect href="http://www.sohu.com" />