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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:15:35+00:00 2026-06-15T00:15:35+00:00

I joined a project which uses spring framework and all the calls are made

  • 0

I joined a project which uses spring framework and all the calls are made by ajax requests and the redirection after success is defined in the view itself and passed to the ajax JS function through a hidden input (so the return ModelAndView at the end of every function in the controller doesn’t have any effect). I feel it messes up the code somehow Am I right? Still I think this was done because they wanted to get the benefits of having restful app with CRUD mapped to post,get,put,delete but eventually they lost the ability to redirect from the controller itself.

  • I want to know if there was other pattern to hold all that.
  • I also want to know the pros and cons of the previous way Vs using only GET and POST which easily allows redirection from the controller.
  • 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-15T00:15:37+00:00Added an answer on June 15, 2026 at 12:15 am

    Well the pattern which i generally use and recommend is the following:

    • User loads a page – Controller GET gets called and loads the view
    • On page load – AJAX script calls the POST of the controller to fetch
      the data from backend ( user sees a loader)
    • On success from POST request, the data is rendered.
    • On error returned – message is displayed to the user of any issues
      from the backend ( provides more control over redirection)

    Advantages with this approach:

    1. Increased flexibility of error handling
    2. User doesn’t have to wait for page to get loaded for data intensive pages
    3. Could be used as an hybrid approach where you can either use full web 2.0 feel or use a more traditional approach for certain operations.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently joined a project which basically uses java as the programming language. I
I have just joined a project that has a connection string which is defined
I joined a project which has been already developed and its an Web Application
I have joined a project which has been already developed and its a legacy
I recently joined a new c# project in which a console application is being
Just joined a new project which they are using VC#2008 to build an application.
I'm joined a rails project which have been going for past two months. I
I have just joined a project which require working on ARM based micro-controllers.. i
I just joined a web dev project that uses Symfony 1.4 on CentOS 5.4
I'm reviewing some code on the project I recently joined, and in a C#

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.