PLEASE HELP - problem with setMethod for image button

A

Amy G

I have a button setup as follows in my jsp page...

<form .....>
<input type="image" src="somefile.jpg" name="next">
</form>

Yet, in my bean, the setNext() method never gets called. I understand that
the value passed to the bean is an x and y coordinate of where the mouse was
clicked... however I cannot figure out what data type(s) the method is
expecting.

I have tried the following

public void setIndex(int a)
public void setIndex(int a, int b)
public void setIndex(int[] a)
public void setIndex(String a)
public void setIndex(Object a)
public void setIndex(Point a)

public void setIndex_X(int a)
public void setIndex_x(int a)
public void setIndexX(int a)

None of them work. Can someone please point me in the right direction???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top