This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to implement login application by image as submit button using struts tags like <html:image>.
but couldn't find the best way to do it.Is it necessary to write Image button details in action class
please help on this
thanks in advance
naresh kumar k
Joined: May 25, 2011
hi guys can any one please help me on this
I tried to use image as submit button in struts using html:image tag but it showing the following error
If you use the html:image tag with a property tag, the Struts library is going to look for getters/setters for that property:
The property name of this image tag. The parameter names for the request will appear as "property.x" and "property.y", the x and y representing the coordinates of the mouse click for the image. A way of retrieving these values through a form bean is to define getX(), getY(), setX(), and setY() methods, and specify your property as a blank string (property="").
hi Joe Ess,
thanks for the reply
I done what you suggested i defined getters and setters method in form class and made property="" but no use same error i am facing.
could you give me the code regarding jsp page for <html:image> tag and for action class if needed.