aspose file tools*
The moose likes Struts and the fly likes html:image and LookupdispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:image and LookupdispatchAction" Watch "html:image and LookupdispatchAction" New topic
Author

html:image and LookupdispatchAction

Mulye
Greenhorn

Joined: Jul 14, 2003
Posts: 1
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:image and LookupdispatchAction