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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:41:57+00:00 2026-05-20T02:41:57+00:00

I have mongodb base with users and passwords. I have a jsp file with

  • 0

I have mongodb base with users and passwords. I have a jsp file with a form for authorization.
filter should be check – authorized user or not. Servlet should authorize user if he not authorized.

Please give simple examples of how to do it.

  • how to verify an authorized user or
    not?
  • The user is not logged. Suppose a
    user is in the database. How it
    authorize?

sorry for bad english.

  • 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-05-20T02:41:58+00:00Added an answer on May 20, 2026 at 2:41 am

    Here’s a scenario:-

    1. User enters a secured page.
    2. Filter intercepts user request.
    3. Filter retrieves User object from session.
    4. If User object exists, allow user to the secured page.
    5. If User object doesn’t exist, redirect user to the login page.

    When the user submits the credential from the login page:-

    1. System authenticates user using the provided credential against the database.
    2. If authentication is successful, system stores User object in the session and displays welcome page.
    3. If authentication is not successful, system brings user back to the login page.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing MongoDB collection containing user names. The user names contain both
I have a MongoDB collection of documents, each document representing a fish . Users
I have launch mongodb server: [demas@arch.local.net][~]% mongod --dbpatmongod --dbpath /home/demas/temp/ Mon Apr 19 09:44:18
I have a good reason to use MongoDB for part of my app. But
I have a collection of articles in MongoDB that has the following structure: {
I have a list of product edition serial numbers to store in MongoDB, eg,
The limitation of one document in MongoDB is 4Mo. I have some documents really
I have been told MongoDB uses the GridFS filesystem for storing files. However, Is
Can you use contrib.auth.models.User or any of contrib.auth along with Django MongoDB Engine ?
So here is my source code : import com.jaspersoft.mongodb.MongoDbConnection; import com.jaspersoft.mongodb.MongoDbDataSource; import java.io.File; import

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.