posted 21 years ago
Hallo,
I am using <html:image> tag to render an HTML input element with an image.
In my abc.jsp:
<html:form action="/abc.do" method="get">
<html:text property="parameter"></html:text>
<html:submit property="action">
<bean:message key="submit.caption.delete"/>
</html:submit>
</html:form>
Instead of <bean:message>, I want to use <html:image> as:
<html:form action="/abc.do" method="get">
<html:text property="parameter"></html:text>
<html:image srcKey="bilder.button.delete" property="action" border="0" />
</html:form>
My Action class extends LookupDispatchAction class as:
public class AbcAction extends LookupDispatchAction {
public ActionForward delete(
ActionMapping actionMapping,
ActionForm arg1,
HttpServletRequest request,
HttpServletResponse arg3)
throws Exception {
request.setAttribute("did", "delete");
return actionMapping.findForward("abc");
}
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("bilder.button.delete","delete");
return map;
}
And in my strut-config.xml file:
<action
path="/abc"
type="AbcAction"
name="abcForm"
scope="request"
validate="true"
parameter="action"
input=".abc">
<forward
name="abc"
path=".abc"/>
</action>
But I am facing the error:
javax.servlet.ServletException: BeanUtils.populate
And
java.lang.IllegalArgumentException: No bean specified
Can anybody help my to solve my problem?