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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:50:04+00:00 2026-06-08T03:50:04+00:00

From spring doc about redirecting: All model attributes are exposed as HTTP query parameters

  • 0

From spring doc about redirecting:

All model attributes are exposed as HTTP query parameters

After redirect, how can I load ModelMap from HTTP query parameters. Can I avoid adding attributes manually ?

  • 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-08T03:50:07+00:00Added an answer on June 8, 2026 at 3:50 am

    By the usual Spring MVC Binding, either using @RequestParam("modelName") or by passing in a backing form to be bound by Spring requestMappedMethod(MyBackingForm form, Model model)

    If you are using Spring 3.1, you can also flashmaps at the point of redirect, then you can actually retrieve it directly from the model in the redirected controller.

    fromRedirectMethod(..., RedirectAttributes redirectAttrs){
         redirectAttrs.addFlashAttribute("myAttr1","myAttrVal1").addFlashAttribute("myAttr2", "myAttrVal2");
    ...perform redirect
    }
    
    inRedirectedMethod(@ModelAttribute("myAttr1") myAttr1.., Model model){
        model.asMap().get("myAttr2");.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The samples and documentation in question can be found here: http://static.springsource.org/spring-flex/docs/1.5.0.M1/ The reference doc
Microsoft Doc says about String.Trim Removes all leading and trailing white-space characters from the
After upgrading from Spring 3.0.0.M4 to 3.0.0.RC1 and Spring Security 3.0.0.M2 to 3.0.0.RC1, I've
Currently I'm playing with faceted search after reading RavenDB doc about it. The result
I started reading more about ThreadPoolExecutor from Java Doc as I am using it
From Spring Projects Issue Tracker Beans: public class JavaBean { private NestedBean nested; }
I'm just upgrading from Spring 3.0.6 to 3.1 and there seems to be an
How to clean jms queue from spring jms? Like clean command from MQ Explorer?
I have a Java program that executes from Spring Qquartz every 20 seconds. Sometimes
I recently upgraded my app from Spring 2.5.6 to Spring 3.0.0. A few days

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.