Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:link : how to get only the URL ?

 
Ken Rodriguez
Greenhorn
Posts: 3
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic