• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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?
 
I don't always make ads but when I do they're tiny
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic