Menu
Hi,
I am trying to call a servlet when the onmouseover or onmouseout attribute is activated in the following jsp file:
<%
String tmp1 = “../servlet/test?text=bad”;
String tmp2 = “../servlet/test?text=good”;
%>
<form>
<input type=image name=img src=<%=tmp1%> onmouseout=<%=tmp1%> onmouseover=<%=tmp2%>
</form>
All this servlet does is create an image with the word ‘bad’ or ‘good’. The image is an encoded jpg outputstream.
I have tried all kinds of things but somehow this does not work on the onmouseout and onmouseover attribute. The src attribute works like a champ.
Anyone any idea how I can make this work?
Thanks