For starters I'm using:
tomcat 5.5.12
struts 1.2.8
os - solaris 10
I have a pretty simply web page/form that have several images (GO ->) that sets a formbean field to the appropiate number of the image clicked. This all works just fine and the code follows:
xx.jsp ---
<script>
function setact(action){
document.forms[0].action.value=action;
}
</script>
...
<html:form action="/myAction">
<html:hidden name="myForm" property="action"/>
...
<html:image src="/images/go.gif" on*lick="setact('2')"/>
</html:form>
Now, I wanted to do to same thing with a link --
<html:link action="/myAction" on*lick="setact('6')">Link</html:link>
Unfortunately, this does absolutely nothing. No errors anywhere but does not set the "action" field like the image tag does. Any thoughts why?? I'm sure I'm missing something simple but just don't see it.
Thanks!
>>>G