• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

html:image and LookupdispatchAction

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic