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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:53:48+00:00 2026-06-11T03:53:48+00:00

In my controller I’m using return new ModelAndView( redirect:new_page ); now I changed Spring

  • 0

In my controller I’m using

return new ModelAndView( "redirect:new_page" );

now I changed Spring version from 3.0.6 to 3.1.2 and I found that it’s not working in new version.

My Controller is defined like

@Controller
@RequestMapping(value = "/test")
public class MyController {

I tried to use

  • "redirect:/new_page"
  • "redirect:/test/new_page"
  • "redirect:./new_page"

and nothing helped, any idea?

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

    So the problem you had is using Object as return type, which, accoring to Spring MVC reference manual, isn’t dispatched as view name or ModelAndView:

    • Any other return type is considered to be a single model attribute to
      be exposed to the view, using the attribute name specified through
      @ModelAttribute at the method level (or the default attribute name
      based on the return type class name). The model is implicitly enriched
      with command objects and the results of @ModelAttribute annotated
      reference data accessor methods.

    I guess you used some undocumented / internal part of Spring MVC, which implementation changed in new release.

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

Sidebar

Related Questions

Controller action: public ActionResult Index() { ViewData[sample] = DateTime.Now.ToLongTimeString(); Thread.Sleep(3000); return View(); } View
Controller: public ActionResult Edit(string temp) { ViewBag.Time = DateTime.Now.ToString(hh:mm:ss); return PartialView(Edit); } Partial View:
Controller: public ActionResult Index() { // not using the interface right now DealsRepository _repo
controller function def request_invite if !request.xhr? render_404 return end @invitation = Invite.new(params[:invite]) if @invitation.save
The controller should ideally be free from domain logic right? How does that match
Controller public ActionResult Create() { return View(new PageViewModel()); } [HttpPost] public ActionResult Create(Page page)
My controller method just return String value. When I called JSON from my view
Controller code: public ActionResult Index() { var start = DateTime.Now; var view = View(new
@Controller @RequestMapping(/User.html); @sessionAttributes(user); class something Now i know that @Controller = implements Controller @requestMaping
My controller: [HttpPost] public ActionResult Deposit(DepositTicket dt) { using (var db = new MatchGamingEntities())

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.