Eugeniu Torica
Eugeniu Torica

Reputation: 7574

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

Suppose I have two actions 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?

Upvotes: 0

Views: 901

Answers (1)

Nate
Nate

Reputation: 2456

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

Upvotes: 1

Related Questions