velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kishore Senji <kse...@gmail.com>
Subject Re: need of urgent help in Velocity template and struts
Date Sun, 22 Aug 2004 17:26:30 GMT
> Eg : <a href='$link.setAction("placeadordersales_vm")'>Select Sales Representative</a>

Use javascript to submit the form
<a href='javascript:doAction(\'$link.setAction("placeadordersales_vm")\')'>Select
Sales Representative</a>

and have a javascript function link this

<script>
function doAction(action){
  document.forms['frm'].action = action;
  document.forms['frm'].submit();
}
</script>

Thanks,
Kishore Senji

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message