[Logo]
Forums Register Login
html:link : how to get only the URL ?
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
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 19, 2017 11:12:17.