Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:10:03+00:00 2026-06-18T16:10:03+00:00

I have Spring SimpleFormController which currently works for POST requests. I want to change

  • 0

I have Spring SimpleFormController which currently works for POST requests.
I want to change the form submission to GET. So I changed the html form method=”post” to method=”get”.

After the change, I want processFormSubmission method to be invoked.
However its not.

Can you please tell what I am doing wrong here?

import org.springframework.web.servlet.mvc.SimpleFormController;

public class VehicleDescController extends SimpleFormController
{
    protected ModelAndView processFormSubmission(
        final HttpServletRequest request, final HttpServletResponse response,
        final Object command, final BindException errors) throws Exception
    {
        ....
    }
}

    <bean name="/vehicleDesc.html"
class="com.xxx.VehicleDescController">
    <property name="commandName" value="lotSeller"/>
    <property name="commandClass" value="com.xxx.LotSeller"/>
    <property name="formView" value="xxxTheBasics"/>
    <property name="viewName" value="xxxVehicleDesc"/>
    <property name="imageUploadViewName" value="imageUpload"/>
    <property name="vixErrorView" value="xxxVIXError"/>
    <property name="assignmentEntryService" ref="xxxService"/>
    <property name="referenceDataService" ref="referenceDataService"/>
    <property name="xxxReferenceDataService" ref="xxxReferenceDataService"/>
    <property name="messageSource" ref="messageSource"/>
    <property name="xxxService" ref="xxxService"/>
    <property name="validator" ref="xxxEntryValidator"/>
</bean>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:10:04+00:00Added an answer on June 18, 2026 at 4:10 pm

    A simple:

    @Override
    protected boolean isFormSubmission(HttpServletRequest request) {
        return true;
    }
    

    Will tell it to always follow the submit workflow of the controller. Obviously if there are both “Submits” and also “normal” GETs that come into this URL, you will have to examine the request and figure out the difference!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can have Spring convert my json POST submission into an object with a
I have a Spring Batch process which has following kind of code. <step id=step1
I have a spring bean that I get like this within a method- repAppCaller
I have a spring roo web service that I am currently building out but
I have Spring WS which handle all kind of request in spring-ws-servlet.xml context: <servlet-mapping>
I have spring application and using property file want to read the values from
I have a form which has a date. I registered a customDateEditor for converting
I currently have Spring configured to use HSQL, but I would like to use
I have spring-security configured using basic and form based authentication as per auto-config='true' .
I am using Spring MVC's SimpleFormController in conjunction with Spring MVC's form JTL to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.