I am trying to write HttpUnit test case for a JSP page. The JSP page is a Struts JSP page with struts tags. The JSP page has following structure
< html: form action = "/something.do">
<tr><td><html:text property = "prop1" />Prop1</td></tr>
<tr><td><html:text property = "prop2" />Prop2</td></tr>
<tr><td><html:image alt = "Add" src= "../images/add.gif" property="add"></html:image>
I would the testcase to show the clicking of the add button. How do I do this?? I am not able it to recognise the source of the image and invoke submit . Any sample code that would tell me how to do this would be good.