如何html跳转action中的一个方法

wxahun 2012-05-30 05:10:49
我用了这个不行

<a href="/tianfu/UserAction.do?method=wa" target="I6">查询信息</a>

有没有高手啊!!!
我用的html,要跳转到一个action中的某个方法,执行查询!不知道如何跳转action中的方法
...全文
356 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
i_mc_90 2012-05-31
  • 打赏
  • 举报
回复
struts中的????
wolf863292 2012-05-31
  • 打赏
  • 举报
回复
怎么个“不行”? 404、500?
谁用都行,就你不行。
不说清楚,怎么帮你?
wxahun 2012-05-31
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
<a href="/tianfu/UserAction.do?method=wa" target="I6">查询信息</a>
可以啊,就看你路径写对没
[/Quote]

tianfu 项目名 UserAction action名 wa方法名! 不行啊
超链接的地址 http://localhost:8080/tianfu/UserAction.do?method=wa

报的错误...
HTTP Status 404 - /tianfu/UserAction.do

--------------------------------------------------------------------------------

type Status report

message /tianfu/UserAction.do

description The requested resource (/tianfu/UserAction.do) is not available.



wxahun 2012-05-31
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
<a href="/tianfu/UserAction.do?method=wa" target="I6">查询信息</a>
可以啊,就看你路径写对没
[/Quote]

tianfu 项目名 UserAction action名 wa方法名! 不行啊
超链接的地址 http://localhost:8080/tianfu/UserAction.do?method=wa

报的错误...
HTTP Status 404 - /tianfu/UserAction.do

--------------------------------------------------------------------------------

type Status report

message /tianfu/UserAction.do

description The requested resource (/tianfu/UserAction.do) is not available.



wxahun 2012-05-31
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
<a href="/tianfu/UserAction.do?method=wa" target="I6">查询信息</a>
可以啊,就看你路径写对没
[/Quote]

tianfu 项目名 UserAction action名 wa方法名! 不行啊
超链接的地址 http://localhost:8080/tianfu/UserAction.do?method=wa

报的错误...
HTTP Status 404 - /tianfu/UserAction.do

--------------------------------------------------------------------------------

type Status report

message /tianfu/UserAction.do

description The requested resource (/tianfu/UserAction.do) is not available.



001007009 2012-05-30
  • 打赏
  • 举报
回复
先确定路径是否正确。
001007009 2012-05-30
  • 打赏
  • 举报
回复
先确定路径是否正确。
huage 2012-05-30
  • 打赏
  • 举报
回复
<a href="/tianfu/UserAction.do?method=wa" target="I6">查询信息</a>
可以啊,就看你路径写对没

81,095

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧