Home Tutorialhelp Comment Iam getting the follwing error

 
 

Comment

Gangadhr Srinivas
Iam getting the follwing error,
August 18, 2010 at 11:33 AM

iam getting the follwoing error.
HTTP Status 400 - Request[/MappingDispatchAction] does not contain handler parameter named division

--------------------------------------------------------------------------------

type Status report

message Request[/MappingDispatchAction] does not contain handler parameter named division

description The request sent by the client was syntactically incorrect (Request[/MappingDispatchAction] does not contain handler parameter named division).


--------------------------------------------------------------------------------

Apache Tomcat/5.5.23HTTP Status 400 - Request[/MappingDispatchAction] does not contain handler parameter named division

--------------------------------------------------------------------------------

type Status report

message Request[/MappingDispatchAction] does not contain handler parameter named division

description The request sent by the client was syntactically incorrect (Request[/MappingDispatchAction] does not contain handler parameter named division).


--------------------------------------------------------------------------------

Apache Tomcat/5.5.23HTTP Status 400 - Request[/MappingDispatchAction] does not contain handler parameter named division

--------------------------------------------------------------------------------

type Status report

message Request[/MappingDispatchAction] does not contain handler parameter named division

description The request sent by the client was syntactically incorrect (Request[/MappingDispatchAction] does not contain handler parameter named division).


--------------------------------------------------------------------------------

Apache Tomcat/5.5.23



my struts-config.xml is as follows:-
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<struts-config>
<data-sources>
</data-sources>
<form-beans>
<form-bean name="DispatchForm" type="com.aditi.form.MapForm"></form-bean>
</form-beans>
<global-forwards>

</global-forwards>
<action-mappings>
<action path="/MappingDispatchAction" name="DispatchForm" type="com.aditi.action.MapAction" parameter="add">
<forward name="addition" path="/addition.jsp"></forward>
</action>
<action path="/MappingDispatchAction" name="DispatchForm" type="com.aditi.action.MapAction"
parameter="sub" scope="request" validate="false">
<forward name="subtraction" path="/subtraction.jsp"></forward>
</action>
<action path="/MappingDispatchAction" type="com.aditi.action.MapAction" name="DispatchForm"
parameter="mul">
<forward name="multiplication" path="/mul.jsp"></forward>
</action>
<action path="/MappingDispatchAction" type="com.aditi.action.MapAction" name="DispatchForm"
parameter="division">
<forward name="div" path="/division.jsp"></forward>
</action>
</action-mappings>
<controller>
</controller>
</struts-config>



my index page looks like this:
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Mapping Dispatch Example Login page</title>
</head>
<body>
<h3>Mapping Dispatch Action Example</h3>
<p><html:link page="/MappingDispatchAction.do?parameter=add">for calling adding.jsp</html:link></p>
<p><html:link page="/MappingDispatchAction.do?parameter=sub">for calling subtration.jsp</html:link></p>
<p><html:link page="/MappingDispatchAction.do?parameter=mul">for calling multiplication.jsp</html:link></p>
<p><html:link page="/MappingDispatchAction.do?parameter=division">for calling division.jsp</html:link></p>
</body>
</html:html>


my action class looks like this:
package com.aditi.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

public class MapAction extends DispatchAction {
public ActionForward add(ActionMapping map,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception
{
System.out.println("iam in add method");
return map.findForward("addition");
}
public ActionForward sub(ActionMapping map,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception
{
System.out.println("iam in subtraction method");
return map.findForward("subtraction");
}
public ActionForward mul(ActionMapping map,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception
{
System.out.println("iam in multiplication method");
return map.findForward("multiplication");
}
public ActionForward division(ActionMapping map,ActionForm form,HttpServletRequest request,HttpServletResponse response)throws Exception
{
System.out.println("iam in division method");
return map.findForward("div");
}

}



my form bean page looks like this:
package com.aditi.form;

import org.apache.struts.action.ActionForm;

public class MapForm extends ActionForm {
/**
*
*/
private static final long serialVersionUID = 1L;
private String parameter=null;
public String getParameter() {
return parameter;
}
public void setParameter(String parameter) {
this.parameter = parameter;
}


}



please someone help me regarding this error.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts Questions

Struts - Struts
Struts  Hi, I m getting Error when runing struts application. i... /WEB-INF/struts-config.xml 1 ActionServlet *.do but i m getting error 

Struts Examples

Struts MappingDispatchAction Example
Struts MappingDispatchAction Example       Struts MappingDispatch... in this example you will learn more about Struts MappingDispatchAction 

Struts Examples

Struts MappingDispatchAction Example
Struts MappingDispatchAction Example       Struts MappingDispatch Action... about Struts MappingDispatchAction that will help you to grasp 

Struts Questions

Struts
Struts  why in Struts ActionServlet made as a singleton what...;Basically in Struts we have only Two types of Action classes. 1.BaseActions...,MappingDispatchAction,SwitchAction,LocaleDispatchAction,DownloadAction. BridgeAction consists 2 

Struts Questions

struts validations - Struts
struts validations  hi friends i an getting an error in tomcat while running the application in struts validations the error in server... --------------------------------- Visit for more information. http://www.roseindia.net/struts/address 

Struts Questions

Deployment Error - Struts
Deployment Error  When I try to deploy application ?struts... deploy the same web application in Weblogic8.1 Application Server, I am getting the following error. Note: Here ?action? is the logical name which we mention 

Struts Questions

defined actions in struts config still getting a HTTP 404 - Struts
defined actions in struts config still getting a HTTP 404  Hi guys, I am getting an Invalid Path requested error. Heres the code snippet from struts-config.xml All the JSPs in the forward 

Struts Questions

First Struts Application - Struts
First Struts Application  Hello, Hello, I have created a struts simple application by using struts 1.2.9 and Jboss 4.0.4. I am getting... action as unavailable ERROR [[/project1]] Servlet /project1 threw load 

Struts Questions

struts-tablib error - Struts
struts-tablib error  I have got the following error even after i have included all the jar file of particular struts-version i am using org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class 

Struts Questions

validations in struts - Struts
I an getting an error in tomcat while running the application in struts validations the error in server as "validation disabled" plz give me reply as soon...}. ------------------------------- Visit for more information. http://www.roseindia.net/struts/address_struts 

Struts Questions

java struts error - Struts
java struts error   my jsp page is post the problem... THINK EVERY THING IS RIGHT BUT THE ERROR IS COMING I TRIED BY GIVING INPUT... on struts visit to : http://www.roseindia.net/struts/ Thanks 

Struts Questions

Error - Struts
Error  Hi, I downloaded the roseindia first struts example... create the url for that action then "Struts Problem Report Struts has detected... ----------------------- RoseIndia.Net Struts 2 Tutorial RoseIndia.net Struts

Struts Questions

Im not getting validations - Struts
Im not getting validations  I created one struts aplication im using..... and Struts... to trace the problem.... BeCoz..Im new to Struts... Thanks InAdvance 

Struts Questions

Struts 2.0 - Struts
Struts 2.0  Hi ALL, I am getting following error when I am trying to use tag. tag 'select', field 'list': The requested list key 'day' could not be resolved as a collection/array/map/enumeration/iterator type. Example 

Struts Questions

i am Getting Some errors in Struts - Struts
i am Getting Some errors in Struts   I am Learning Struts Basics,I am Trying examples do in this Site Examples.i am getting lot of errors.Please Help me 

Struts Questions

struts
in this file. # Struts Validator Error Messages errors.required={0...struts  <p>hi here is my code in struts i want to validate my... }//execute }//class struts-config.xml &lt;struts 

Struts Questions

STRUTS
STRUTS  Suppose if you write label message with in your JSP page. But that "add.title" key name was not added in ApplicationResources.properties file? What happens when you run that JSP? What error shows? If it is run 

Struts Questions

Struts File Upload Example - Struts
/struts/strutsfileupload.shtml i have succeeded. but when i try to upload file with size>1 MB , getting error "file size is large". if i want to upload...Struts File Upload Example  hi, when i tried the struts file 

Struts Questions

Struts - Struts
Struts  How to display single validation error message, in stude of ?  Hi friend, I am sending you a link. This link will help you. Please visit for more information. http://www.roseindia.net/struts/struts 

Struts Questions

jsperexception in struts application
jsperexception in struts application  Iam getting the following error repeatedly can u explain the solution for this? HTTP Status 500 - type Exception report message description The server encountered an internal error 

Struts Questions

Struts - Struts
Struts  Hello I have 2 java pages and 2 jsp pages in struts... for getting registration successfully Now I want that Success.jsp should display... with source code to solve the problem. For read more information on Struts visit 

Struts Questions

struts - Struts
struts  Hi, i want to develop a struts application,iam using eclipse 3.1,tomcat server.tell me the procedure how to add jar files and which jar... for struts ,its well and good by the way one point i should say you can put 

Struts Questions

Exception handling through Struts - Struts
and developing project in struts. I want to do error handling through struts. I have used tag to my web.xml file but still I am getting errors on the screen. It is not showing me that error page whatever I have entered in my web.xml My web.xml 

Struts Questions

Struts - Overrite of Validate method - Struts
Struts - Overrite of Validate method  i am trying to display error message on target page,by using this code ..when iam compliling i got errors.so it's not compiling ...pls send what is the resion..and iam using struts 1.3.8. 

Struts Questions

Actions in Struts
Actions in Struts  Hello Sir, Thanks for the solutions you have sent me. i wanted examples on Struts DispatchAction,Forword Action ,Struts lookupDispatchAction,Struts mappingDispatchAction,Struts DynaActionform.please 

Struts Questions

struts - Struts
struts  how to solve actionservlet is not found error in dispatch action 

Struts Questions

Getting path name of uploading file in struts 2.1.8
Getting path name of uploading file in struts 2.1.8  In my question I used struts 2.8.1 instead of 2.1.8. Sorry 

XML Questions

error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http 

XML Questions

error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http 

XML Questions

error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http 

XML Questions

error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http 

XML Questions

error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http 

XML Questions

error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http 

Struts Questions

getting result in table dynamically - Struts
getting result in table dynamically  How do i get result in tabular format dynamically using our own tags 

Struts Questions

java - Struts
java  I am getting same error. Failed to find resource /Bookmark...! struts-config.xml... config /WEB-INF/struts-config.xml 1 action *.do Thanks 

Struts Questions

struts - Struts
struts  ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES I get this error when i try the validator framework example.......wat could b the problem 

Java Beginners

error
error  while iam compiling iam getting expected error 

Struts Questions

struts - Struts
the form tag... but it is giving error.. can you please give me solution 

Struts Questions

Exception - Struts
Exception - java.lang.reflect.InvocationTargetException   java.lang.reflect.InvocationTargetException i am getting the foregoing error ...can anyone tell why it is occurring?  Ans 

Struts Questions

forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page errorPage="errorPage.jsp" %> in the first page that generates the exception 

Struts Questions

struts first example - Struts
struts first example  I got errors in struts first example like can... # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome! index.jsp struts-config.xml 

Struts Questions

Reg struts - Struts
Reg struts   Hi, Iam having Booksearch.jsp, BooksearchForm.java,BooksearchAction.java. I compiled java files successfully. In struts-config.xml Is this correct? I would like to know how do i have to make action 

Struts Questions

Struts Layout Examples - Struts
Struts Layout Examples  Hi, Iam trying to create tabbed pages using the struts layout tag. I see the tab names on the page but they cannot...://www.roseindia.net/struts/struts_tiles.shtml Thanks. Amardeep 

Struts Questions

java - Struts
java  Running login page i am getting the error.In my jsp page i am giving the message ressource key where can i put the message key. login jsp... [Servlet Error]-[/loginpage.jsp]: javax.servlet.jsp.JspException: Cannot find 

Struts Questions

Getting path name of uploading file in struts 2.8.1
Getting path name of uploading file in struts 2.8.1  Hai! I am using struts 2.8.1. I want to upload file into database with the path name. How can I can get the original path name of the file in struts 2.8.1? It only display 

Struts Questions

Struts-problem With DispatchAction Class
i'm getting the following error: exception javax.servlet.ServletException...Struts-problem With DispatchAction Class  hi this is Mahesh...i'm working with struts 1.3.10....I have created an application which uses 

Struts Questions

Struts first example - Struts
Struts first example  when i am doing struts first example , it is raising 404 error sometimes it is raised 500 error. what is the problem, and how to do the first program in struts. please give reply with regad's 

Struts Questions

struts internationalisation - Struts
struts internationalisation  hi friends i am doing struts iinternationalistaion in the site http://www.roseindia.net/struts/strutsinternationalization.shtml i followed the procedure as mentioned but i am not getting 

Struts Questions

The server encountered internal error() - Struts
The server encountered internal error()  Hello, I'm facing the problem in struts application. Here is my web.xml MYAPP... org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 

Struts Questions

servlet action not available - Struts
servlet action not available  hi i am new to struts and i am getting the error "servlet action not available".why it is displaying this error. Struts Blank Application action org.apache.struts.action.ActionServlet 

Struts Questions

struts---problem with DispatchAction
struts---problem with DispatchAction  hi this is Mahesh...i'm working with struts 1.3.10....I have created an application which uses DispatchAction..I hav configured struts-extras 1.3.10 jar but still i'm getting the following 

Struts Questions

htpp 404 error "Servlet as is not available"
htpp 404 error "Servlet as is not available"  hi iam new to struts. when iam running my struts app after filling the login form iam getting "Servlet as is not available". iam unable to find out where the error is.iam pasting my 

Development process Questions

Struts+Hibernate - Development process
;Hi, What error you are getting? Thanks...Struts+Hibernate  Hi I am Using Struts+Hibernate in my web application. my task is to insert Multiple rows at a time . i am getting the whole 

Spring Framework Questions

Getting HTTP 404 error in Spring web MVC with Hibernate Integration
Getting HTTP 404 error in Spring web MVC with Hibernate Integration   Hi, i am Getting HTTP 404 error in Spring web MVC with Hibernate Integration...;Please visit the following links: http://www.roseindia.net/struts/hibernate-spring 

Struts Questions

Reg struts - Struts
Reg struts  Please explain all the tags in Struts.  Hi,Above error means struts.jar is present in the classpath.Just make sure that you have the struts jar also in your classpath, it should be like this:CLASSPATH 

Struts Questions

Struts 2 : Http Status Error 404 - Struts
Struts 2 : Http Status Error 404  Hi All, I'm facing the below... error as shown below. see below error for the details code... --------------------------------------------------------------------------- ERROR(404) : "The requested 

Struts Questions

Compilation Error - Struts
Compilation Error  description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class 

Struts Questions

Heilighting error field in struts 1
Heilighting error field in struts 1  Hi, I am trying to change field color on error occur to a particular field. But i m not able to do it.I try to use errorStyleClass and errorStyle as well bt it giving me an error 

Java Beginners

actullay iam week in programming logic , and than iam not getting how to trace the programming while excuting time ..
actullay iam week in programming logic , and than iam not getting how to trace the programming while excuting time ..  how to find the auto widening and explicit narrowing? and than what's the difference between auto widening 

Java Beginners

actullay iam week in programming logic , and than iam not getting how to trace the programming while excuting time ..
actullay iam week in programming logic , and than iam not getting how to trace the programming while excuting time ..  how to find the auto widening and explicit narrowing? and than what's the difference between auto widening 

Struts Questions

struts 2 Application starting error - Struts
struts 2 Application starting error  Hello Sir/Madam, Recently i have installed tomcat 5.5.23 on my window machine with XP, then i make an small application which i have attached with name Struts2Application, but after 

Struts Questions

struts2-db connection error - Struts
 

Struts Questions

Struts 2 File Upload error
Struts 2 File Upload error  Hi! I am trying implement a file upload using Struts 2, I use this article, but now the server response the error: ognl.MethodFailedException: Method "setArquivo" failed for object 

Struts Questions

STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS

Struts Questions

STRUTS
STRUTS  MAIN DIFFERENCES BETWEEN STRUTS 1 AND STRUTS

Struts Questions

Struts
Struts   How to retrive data from database by using Struts 

Struts Questions

How to use Token Interceptor - Struts
How to use Token Interceptor  Hi, Iam a beginner in struts. I... pages/error/error.jsp /error/error.jsp... interceptor Please correct if iam wrong Thanks in advance 

Struts Questions

Struts
Struts  how to learn struts 

Struts Questions

Struts
Struts  what is SwitchAction in struts 

Struts Questions

STRUTS
STRUTS   Request context in struts? SendRedirect () and forward how to configure in struts-config.xml 

Struts Questions

i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
from the struts application(itext.jar),it is uploading into database but it is not downloading .Please help to me.i am getting the below error when downloading...i am getting the problem when i am downloading the pdf file from oracle 10g 

Struts Questions

Managing Datasource in struts Application
("fail"); } I am getting error like getDatasource method does not exist...Managing Datasource in struts Application  Hi i need to know how to do set up of Oracle data base with struts using Data source.I have defined 

Struts Questions

getting db in action class
getting db in action class  hi, Am usin struts in ma application... n i need to interact with the db .. so i used.. getDataSource(request) but it gives me an error.. java.lang.NoSuchMethodError: LoginAction.getDataSource(Ljavax 

Struts Questions

Struts dispatch action - Struts
Struts dispatch action  i am using dispatch action. i send the parameter="addUserAction" as querystring.ex: at this time it working fine... now it showing error javax.servlet.ServletException: Request[/View/user] does 

Struts Questions

How to check a checkbox - Struts
tags i am getting an error that the property "checked" is not defined. Can someone... example Java JDBC Hibernate JSP Servlets Struts 

Struts Questions

struts
struts  in industry, struts 1 and struts 2. which is the best? which is useful as a professuional   Have a look at the following link: Struts Tutorials 

Struts Questions

SwitchAction Application in struts 1.3.10
SwitchAction Application in struts 1.3.10  Hi,I am working on struts...' module. and 'action=/switchpath' is the action path to link struts-config.xml name..." />`) and I am having struts-extras-1.3.10 and I have created struts-x 

Development process Questions

struts
struts shopping cart project in struts with oracle database connection  shopping cart project in struts with oracle database connection   Have a look at the following link: Struts Shopping Cart using MySQL 

Struts Questions

struts
struts  what are the 4 methods of struts framework 

Development process Questions

Struts
Struts  Tell me good struts manual 

Struts Questions

Struts 2
Struts 2  I am getting the following error.pls help me out. The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has 

Struts Questions

struts validation
struts validation  Sir i am getting stucked how to validate struts using action forms, the field vechicleNo should not be null and it should...://www.roseindia.net/struts/strutsvalidatorframework.shtml http://www.roseindia.net 

Struts Questions

Java - Struts
Java  this error occur when we run our struts wev b applcation Servlet action is currently unavailable 

JSP Servlet Questions

Struts
Struts   When Submit a Form and while submit is working ,press the Refresh , what will happen in Struts 

Struts Questions

Struts 2 RequiredFieldValidator - Struts
What is Struts 2 RequiredFieldValidator? Need an Example or Code  What is Struts 2 RequiredFieldValidator? Need an Example or Code on Field Validation in Struts 2.  Please follow the following instruction:1. index.jsp 

Framework Questions

struts
struts  Hi what is struts flow of 1.2 version struts? i have struts applicatin then from jsp page how struts application flows Thanks Kalins Naik   Please visit the following link: Struts Tutorial 

Struts Questions

file download in struts - Struts
need to get an error message when no meterid is selected from the list... I used validator in struts but it didn't worked... i used validate() in form bean.. but still it didn't worked... The error messsage is displaying just when i 

Struts 1 Tutorials

Struts 1 Tutorial and example programs
.   - Struts MappingDispatchAction Example Struts... in Struts, validate the user and show error message to user if user..., Struts Presentations, Struts MappingDispatchAction Example, Struts 

Struts Questions

struts <html:select> - Struts
struts   i am new to struts.when i execute the following code i am getting this exception .how to solve this problem .please rectify the problem..., allowing Struts to figure out the form class from the struts-config.xml file 

Struts Questions

Java - Struts
Java  Thank you so much , Tell me how to use "ejb in struts" for database acessing, i am not able to get the look up in struts by using ejb, how to get , i have got the error like this unable to bound,and page not found  

Struts Questions

struts hibernate integraion tut - Struts
struts hibernate integraion tut  Hi, I was running struts hibernate integration tutorial. I am facing following error while executing the example. type Exception report message description The server encountered 

Java Server Faces Questions

struts
struts  i have no any idea about struts.please tell me briefly about struts?**   Hi Friend, You can learn struts from the given link: Struts Tutorials Thanks 

Struts Questions

jsp usebean problem - Struts
popupwindow jsp below code run.. ...here iam getting the problem..in the below code iam not getting the logic:iteration values ..means arraylist values from 

Struts Questions

struts
struts  why doc type is not manditory in struts configuration file 

Struts Questions

struts
struts  why doc type is not manditory in struts configuration file 

Struts Questions

struts
struts  why doc type is not manditory in struts configuration file 

Struts Questions

struts
struts  why doc type is not manditory in struts configuration file 

Struts Questions

struts
struts   how to write Dao to select data from the database 

Struts Questions

Struts
Struts   in struts I want two struts.xml files. Where u can specify that xml files location and which tag u specified 

Framework Questions

Struts
Setter methods of form bean class in Struts applications  who calls the setter methods of form bean class in struts applications 

Advertisements Advertisements
 

 

 

DMCA.com