File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:link : how to get only the URL ?

 
Ken Rodriguez
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get ONLY the URL generated by html:link tag in a JSP?
I do not want to supply the body inside <html:link> </html:link> tag pairs. Instead just the URL has to be generated and used somewhere--e.g. using for triggering on a button click. (or embed it somewhere else in HTML).

something like:

-----
function goBackThere()
{
document.href= '<html:link forward="thisFwdKeepsChanging" />';
}
..
..

<input type="button" value="Cancel" onClick goBackThere() >
------

This looks like pretty common task and i guess lot of people would have done it. Yet all my searches have turned up nothing for this .. Could someone please enlighten regd this or give pointers if it has been answered before ?

This is for **older** version of struts - before they split up the framework into 'Action Framework' and 'Shale framework'. The version we're using is 1.2.7

Thanks,
Ken
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic