Skip to main content
Updated url to always point to latest version so that users like me wont miss new methods added in the class for coding
Source Link

First of all, I assume you have the [HiddenHttpMethodFilter][1] configured in your web.xml. It is required to convert your _method with value delete to the DELETE RequestMethod

Secondly, the poid is being passed in the body of the request but in your controller, you are expecting it to be passed in the URL itself. This might explain why Spring is unable to map the request.

EDIT 1:

To pass poid in URL, you will have to include in your form action when your HTML is generated. It depends on your view technology (I use Freemarker) but you would be required to do something like this:

<form action="/MyNewApp/processPurchase/${poid}" method="post"> 

Assuming that the poid is written to the model that is binded to your view. [1]: http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/filter/HiddenHttpMethodFilter.htmlhttp://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/filter/HiddenHttpMethodFilter.html

First of all, I assume you have the [HiddenHttpMethodFilter][1] configured in your web.xml. It is required to convert your _method with value delete to the DELETE RequestMethod

Secondly, the poid is being passed in the body of the request but in your controller, you are expecting it to be passed in the URL itself. This might explain why Spring is unable to map the request.

EDIT 1:

To pass poid in URL, you will have to include in your form action when your HTML is generated. It depends on your view technology (I use Freemarker) but you would be required to do something like this:

<form action="/MyNewApp/processPurchase/${poid}" method="post"> 

Assuming that the poid is written to the model that is binded to your view. [1]: http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/filter/HiddenHttpMethodFilter.html

First of all, I assume you have the [HiddenHttpMethodFilter][1] configured in your web.xml. It is required to convert your _method with value delete to the DELETE RequestMethod

Secondly, the poid is being passed in the body of the request but in your controller, you are expecting it to be passed in the URL itself. This might explain why Spring is unable to map the request.

EDIT 1:

To pass poid in URL, you will have to include in your form action when your HTML is generated. It depends on your view technology (I use Freemarker) but you would be required to do something like this:

<form action="/MyNewApp/processPurchase/${poid}" method="post"> 

Assuming that the poid is written to the model that is binded to your view. [1]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/filter/HiddenHttpMethodFilter.html

added 365 characters in body
Source Link
arahant
  • 2.2k
  • 8
  • 38
  • 64

First of all, I assume you have the HiddenHttpMethodFilter[HiddenHttpMethodFilter][1] configured in your web.xml. It is required to convert your _method with value delete to the DELETE RequestMethod

Secondly, the poid is being passed in the body of the request but in your controller, you are expecting it to be passed in the URL itself. This might explain why Spring is unable to map the request.

EDIT 1:

To pass poid in URL, you will have to include in your form action when your HTML is generated. It depends on your view technology (I use Freemarker) but you would be required to do something like this:

<form action="/MyNewApp/processPurchase/${poid}" method="post"> 

Assuming that the poid is written to the model that is binded to your view. [1]: http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/filter/HiddenHttpMethodFilter.html

First of all, I assume you have the HiddenHttpMethodFilter configured in your web.xml. It is required to convert your _method with value delete to the DELETE RequestMethod

Secondly, the poid is being passed in the body of the request but in your controller, you are expecting it to be passed in the URL itself. This might explain why Spring is unable to map the request.

First of all, I assume you have the [HiddenHttpMethodFilter][1] configured in your web.xml. It is required to convert your _method with value delete to the DELETE RequestMethod

Secondly, the poid is being passed in the body of the request but in your controller, you are expecting it to be passed in the URL itself. This might explain why Spring is unable to map the request.

EDIT 1:

To pass poid in URL, you will have to include in your form action when your HTML is generated. It depends on your view technology (I use Freemarker) but you would be required to do something like this:

<form action="/MyNewApp/processPurchase/${poid}" method="post"> 

Assuming that the poid is written to the model that is binded to your view. [1]: http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/filter/HiddenHttpMethodFilter.html

Source Link
arahant
  • 2.2k
  • 8
  • 38
  • 64

First of all, I assume you have the HiddenHttpMethodFilter configured in your web.xml. It is required to convert your _method with value delete to the DELETE RequestMethod

Secondly, the poid is being passed in the body of the request but in your controller, you are expecting it to be passed in the URL itself. This might explain why Spring is unable to map the request.