| Author |
Request[/technical] does not contain handler parameter named action
|
Prashanth Chandra
Ranch Hand
Joined: Dec 07, 2005
Posts: 78
|
|
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
Joined: Feb 15, 2005
Posts: 4864
|
|
|
Make sure that both your <html:submit> tags specify property="action".
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: Request[/technical] does not contain handler parameter named action
|
|
|