Using Struts2, I compute a link in my java code and expose the link s string in a getter for the JSP page. I try to link to this external link using <a href= <s:property value="mylink" /> >a Link</a>
. Sadly, Struts always puts the local context before this link, so the resulting link looks like <a href="http://localhost:8080/Mycontext/https://twitter.com/some?more=param&ete=rs">a Link</a>
.
Note: I also tried using <s:a>
and <s:url>
with includeContext="false"
... same result. What s wrong here?