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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:47:29+00:00 2026-06-11T21:47:29+00:00

I have 4 types of requests handled by 4 different methods in AccountsController :

  • 0

I have 4 types of requests handled by 4 different methods in AccountsController:

  1. /accounts Displays all the accounts
  2. /accounts/new New accounts page
  3. /accounts/{accountId}/edit Edit account page
  4. /accounts/{accountId}/delete Deletes an account

(1) is fine. I just return the DisplayAccounts.jsp view.

Regarding (2) and (3), When I take the user from initial view to DisplayAccounts.jsp (once the action is successful), the URL is still the old one (either /accounts/new or /accounts/{accountId}/edit respectively)

And with (4), I dont have a view to start with. It’s just an action, which should return the view EditAccount.jsp on failure and DisplayAccounts.jsp on success. And again, the final URL should be /accounts/{accountId}/edit or /accounts respectively.

How do I accomplish this?

  • 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-11T21:47:31+00:00Added an answer on June 11, 2026 at 9:47 pm

    You don’t have to associate jsp with the controllers function. Just dn’t return ModelAndView but void and it will call the function and wont call any view.

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

Sidebar

Related Questions

Essentially my problem is thus; I have a MVC system that redirects all requests
I have been trying to call a different controller from a jsp page that
I have a Rails app that uses STI to handle different types of Users,
I have types provided in a library I cant modify, such as this: namespace
I have 2 types: CREATE OR REPLACE TYPE id_type AS OBJECT ( id NUMBER(19,
I have three types of products - Retail products (ID,product_categoryId,price,name) - Courses (ID,course_categoryId,price,name,roomId) -
I have some types which are generated by a web service reference. I want
I have two types of users for my system, normal human users with a
I have two types of registration, registration A and registration B, each will have
I have 3 types, (TCPClient, string, class) Note that the class is defined at

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.