<script .... function clicked(path) { window.open(path,"My Popup",""); } </script>
<a href="javascript:clicked('<html:rewrite page="/yourAction.do" />')">
On Wednesday, Jun 18, 2003, at 14:52 Europe/London, Ben Anderson wrote:
I have a form with 2 buttons. I know I can handle this ok using the dispatch property. But, what I'd rather do (so I don't have to put ugly query strings in my links) is use javascript. What I'm wondering is, if there's a way to get action -> link resolution that the <html:link/> tag gives me without the <a href=....
<code file="linker.jsp">
<html>
<head>
<script type="text/javascript">
function clicked(){
var link = <html:link value="action/to/do"/>;
// this won't work since the value in link is actually <a href="action_to_do.jsp">
window.open( link );
Thanks, Ben Anderson
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]