Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

Error does not contain handler parameter named 'method'

Error does not contain handler parameter named 'method'

 
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans
View previous topic :: View next topic  
Author Message
juniormember



Joined: 28 Jun 2008
Posts: 154

PostPosted: Wed Nov 05, 2008 6:26 am    Post subject: Error does not contain handler parameter named 'method' Reply with quote

Hi

I am using struts and when i submit my form through dynafom i am getting this error
Quote:

javax.servlet.ServletException: javax.servlet.ServletException: Request[/sMTimeTableEvent] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)


and
Quote:

javax.servlet.ServletException: Request[/sMTimeTableEvent] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.


I am extends LookupDispatchAction in action servlet to get method key

and all key define correctly. My struts version is 1.3
Can anyone check my problem
Back to top
View user's profile Send private message
strutschamp



Joined: 04 Mar 2007
Posts: 4

PostPosted: Wed Dec 24, 2008 12:52 pm    Post subject: Reply with quote

LookupDispatchAction work with handler
This handler come from form of JSP.

method is handler here

Quote:
<action parameter="method" >


When this form is submitted to server, it should have method form field in JSP page and should have any value which should match with LookupDispatchAction of key

public Map getKeyMethodMap() in action servlet

check first, do JSP form not containing javascript error.

Most of cases, JSP form contain javascript error and submitted with null field to action mapping.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack