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 604831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:04:50+00:00 2026-05-13T17:04:50+00:00

With spring MVC, do you have to use one of the special form controllers

  • 0

With spring MVC, do you have to use one of the special form controllers or it just makes things easier?

I want to create a form, which doesn’t directly map 1:1 to a particular entity, and perform server side validation on them data.

For the front end, I want to use jQuery. Does spring tie itself to a particular javascript library or can I use jquery?

  • 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-05-13T17:04:51+00:00Added an answer on May 13, 2026 at 5:04 pm

    With Spring MVC 2.5 and newer, you can use annotations to make any class into a controller, without inheriting from one of the form controllers. In fact, the Spring folks are recommending the annotation-based approach and it seems clear that the future of Spring is annotations. In fact, most things that the form controllers do can easily be done with annotations, so using the built-ins doesn’t necessarily make anything easier.

    If you want to use the built-in Spring binding, where a particular form field maps directly to a particular entity property, you do need to have a single “command” object as your form-backing object. It sounds like this may not work for you; one approach is to have a primary entity be your form-backing object and handle fields that don’t map to it as regular request parameters. In this scenario you’d have to put the data for those other entities in via specific code, and then call the validation yourself.

    Lastly, no, Spring MVC doesn’t tie itself to a JS library, and yes, I’ve often used jQuery with Spring MVC.

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

Sidebar

Related Questions

I have a form in spring mvc 2 having command class Class1 I want
I have one page form done with Spring MVC. User has to register first
I have a Spring MVC application trying to use a rich domain model, with
I use Spring MVC 3.0 and JSP. I have an object: public class ObjectWrapper
Have a simple Spring MVC portlet, and from one of portal pages I have
In a Spring MVC webapp, I have a form and a corresponding controller. In
I have learned how to use Spring MVC 3, but I am very interested
I have a Spring-MVC project which needs to have 2 views for example: views/xxx/...
I'm trying to use this tutorial to create a spring mvc user login page.
Setup: I am using Spring-MVC in one of my project. I have to access

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.