开发者

How do I find absolute URL of an action in Struts 2

开发者 https://www.devze.com 2022-12-13 10:14 出处:网络
Suppose I have two a开发者_StackOverflow社区ctions details and edit I need to display in the view that corresponds to details action an link that points to edit action. The problem is that I need thi

Suppose I have two a开发者_StackOverflow社区ctions details and edit

I need to display in the view that corresponds to details action an link that points to edit action. The problem is that I need this link to be absolute. How can I find the URL of edit action?


Maybe the s:url tag and the s:a tag will help?

http://struts.apache.org/2.1.6/docs/url.html

http://struts.apache.org/2.1.6/docs/a.html

0

精彩评论

暂无评论...
验证码 换一张
取 消