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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:15:42+00:00 2026-06-01T19:15:42+00:00

Using container managed security on Glassfish, how can you make individual profile pages and

  • 0

Using container managed security on Glassfish, how can you make individual “profile” pages and restrict that only the person logged in is capable of changing it? Let say you have user “John” and “Amanda” and they both have the role “user”, how can you be sure that only “John” can change his profile page, and not “Amanda”?

<form method="POST" action="j_security_check">
    <table>
        <tr>
            <td>User name:</td>
            <td><input type="text" name="j_username" /></td>
        </tr>
        <tr>
            <td>Password:</td>
            <td><input type="password" name="j_password" /></td>
        </tr>
        <tr>
            <td><input type="submit" value="Login" /></td>
        </tr>
    </table>
</form>
  • 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-01T19:15:44+00:00Added an answer on June 1, 2026 at 7:15 pm

    Can’t you check if the logged in user from the session and the profile you are asked to fetch from database are the same? If they don’t match, the user cannot edit that page. Ideally, I would put this kind of user session logic in a server filter do that it can work on all requests.

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

Sidebar

Related Questions

I've got a web application, deployed on GlassFish 3.0.1, which is using container managed
It was recommended to me that, when using an IOC container, I should change
While using container managed entity bean when is the bean stored to database by
According to the msdn docs for System.Security.Cryptography.SymmetricAlgorithm Note that when using derived classes, it
I'm using JPA with Hibernate as the provider with container-managed transactions (JBoss AS 6.1.0.Final).
So I'm using container managed transactions in OpenEJB and Hibernate and I have a
I have a @Stateless EJB using container managed transaction. Is there a way to
I am referring to container managed transaction attributes in Enterprise Java Beans. I can't
We are using OpenEJB clients that connect to one OpenEJB server container. The OpenEJB
I am editing a site that the menu is using a JavaScript. I managed

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.