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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:07:38+00:00 2026-06-10T12:07:38+00:00

We are developing a new feature to current spring application: when user try to

  • 0

We are developing a new feature to current spring application: when user try to log on the main page, we first need to check a tag in an xml file(like db version or so) to determine whether user can direct to the main page. If the version is current, run the spring application, otherwise redirect to another page let user to upgrade the database then restart the app(manually).

I think there are two solutions:

  1. make this feature using spring so that let spring mvc handle the rest.

  2. make a filter before the servlet level that redirect to the upgrade page when wrong version. Not even bother to get into spring application.

So which one sounds more reasonable? Please share any ideas, thanks.

  • 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-10T12:07:39+00:00Added an answer on June 10, 2026 at 12:07 pm

    I think using Filters here is overkill, because Filters are checked in every request and you only need this to be checked once, when user logs in.

    So, the best approach should be to redirect conveniently depending of XML tag check, after user logs in (I think this is your first proposal).

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

Sidebar

Related Questions

(I'm developing in Python 3.1, so if there's some shiny new 3.x feature I
I'm developing a new website . Testing out the page in different browsers, I
I have been developing a new JavaScript application which is rapidly growing in size.
I am developing a application for iPhone with the syncing feature for google calendar
I'm developing an app in which the user could subscribe for a feature to
We follow the practice of having new branch for developing new feature and again
I'm working at a company that uses SCCS internally for developing it's main application.
Developing a new ROR3 website, I need to implement a sort of internal mail
I am currently developing a new WPF application and have the majority of my
What Android API version would you choose to begin developing a new Java application?

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.