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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:31:58+00:00 2026-06-11T09:31:58+00:00

We are working on what will turn out to be a very large Spring

  • 0

We are working on what will turn out to be a very large Spring MVC application. By the looks of it, we’ll have a lot of fields in the JSP that we will have to manually map to the model, and do basic validations (apart from annotated validations).

Are there any frameworks or techniques that will allow us to manage so many fields – some sort of map?

  • 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-11T09:32:00+00:00Added an answer on June 11, 2026 at 9:32 am

    Is anything blocking you from using @ModelAttribute? It will create the object from the fields from WebRequest.

    The method of the controller will look like:

    @RequestMapping(value = "/mapping")
    protected ModelAndView changeState(@ModelAttribute StateBean state) { ... }
    

    I also came to situation where the mapping wasn’t that straight forward and I passed whole WebRequest to my controller and created few helper methods to get the fields I needed. This was especially helpful for dynamically generated complex structures like treetables etc.

    RequestMapping(value = "/mapping")
    protected ModelAndView processRules(WebRequest request) { ... }
    

    And in the helper method I am getting the fields by generating the name and calling:

    request.getAttribute(fieldName);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small project that I will be working on shortly that collects
I'm working on a scheme that will heavily use array fields in mongo documents,
I'm working on a small web application that will let users enter calendar events.
I have managed to break a working application, and cannot work out how to
For a project I'm working on I will have multiple servers and lots of
I want to start using Bing for a project which will include working out
Hi im working on a trigger that will not allow inserts/updates when the newly
I know this will really turn out to be simple, but my brain is
I have been working on creating a kpi that compares the rank of a
I have a game I am working on that has homing missiles in it.

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.