Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request[/technical] does not contain handler parameter named action

 
Prashanth Chandra
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting this error when i am trying to call a Action Servlet which has extended a LookDispatchAction. I have also added the Map method as follows

protected Map getKeyMethodMap()
{
Map map = new HashMap();
map.put("displayForm.addButton", "add");
map.put("displayForm.cancelButton", "cancel");
return map;
}



The struts-config.xml file is as follows:
<action path="/technical"
type="DisplayAction"
name="displayForm"
validate="true"
attribute="technician"
scope="request"
input="/member/i2i-memberarea.jsp"
parameter="action">
<forward name="add" path="/member/addagent.jsp" />
<forward name="success" path="/member/agentsreport.jsp" />
<forward name="failure" path="/i2i-display.jsp" />
</action>

javax.servlet.ServletException: Request[/technical] does not contain handler parameter named actionorg.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:199)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that both your <html:submit> tags specify property="action".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic