Struts 2的action跳转问题

首先说一下我的目录结构:
WebRoot\testpage\testtemplate\tempadd.jsp

在struts 1中,在Jsp页面我使用:

/testpage/testtemplate/templist.jsp
/testpage/error.jsp

在Jsp页面使用








都无法正常连接这个方法。

请问问题何在??

LZ的Action的Package配置的namespace是什么?

假设是/test

那么应该这样写:

这个问题也就是你如何从WebRoot\testpage\testtemplate\tempadd.jsp 访问'/'目录的问题'..'代表父目录那么'..\'达到你的WebRoot\testpage所以还得往上走那么最终的路径是'....\yournamespace\actionname.action'

btw:直接用struts2的url标签就可以了。。
ie.
[code="xml"]
#生成当前页面的url

[/code]
之后就可以用
[code="xml"]

你最好还是用struts2的url标签来实现