Results 1 to 4 of 4
  1. #1
    nishi.kishore is offline Member
    Join Date
    Sep 2009
    Posts
    2
    Rep Power
    0

    Default multiple users with single connection

    hi,
    my problem is as follows :
    - Hide quoted text -

    i am developing a web project in java.
    i have created a home page of my website.
    this page consists of 4 types of users suppose A, B, C, D.
    now type A user consists of many users like A1,A2,A3 etc.
    similarly for B it consists of B1,B2,B3 etc.
    same for C & D.
    now suppose user select the type A user , a new login page will be open.
    it asks for name and email id.now these values will be retrieved from the database with the help of loginServlet.java.
    now A1 logged in with name and emailid and A1 clicks on login button.
    a new page should open which consists of user A1's profile.
    now on the same login page on another system suppose A2 logged in with his name and emailid and clicks on the log in button.
    a new page should open which consists of A2's profile.
    same for A3,A4,A5 etc.
    this process should apply on all other users i.e. B,C,D.
    i have created a servlet but it is only capable of one user.
    i want it for multiple users who uses a single connection to the database simultaneously.
    i am precising my problem with help of example as
    yahoomail and gmail.
    both of the above websites uses a single connection with multiple users.
    n no. of users can logged into the website and their profile page is visible to them with their information only.
    i am trying to overcome this problem since 1 week.
    but i am still unable to resolve this.
    if you have any code for this problem then it will also helpful for me.
    please help me out here, i will be pleased to you and will definetly give you a treat
    you when my project gets completed.
    but condition is resolving this error first.
    thanks and regards
    Nishi Kishore

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    How did you develop this profile page to that it can only work with one user?
    You should be having a bean for your users. When the login is successful you simply ask your data layer to give you the user bean and pass it to the JSP which would then display that bean's details.

  3. #3
    nishi.kishore is offline Member
    Join Date
    Sep 2009
    Posts
    2
    Rep Power
    0

    Default multiple users with single connection-part 2

    i have not much idea about java beans.
    but i was using the connection pooling for this problem,this solution also failed.
    i want the exact working same as yahoomail and gmail.
    both web sites has the capability of login on different browser with
    different users on the same system.
    these web sites also include the capability of logging on different system
    with different users simultaneously.
    it means that there should be a mechanism to provide this feature into the website.

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Yes of course it's possible and it is a very simple and very basic thing to do.
    Your question implies that you are very new to web development. Better read a tutorial first before trying to make applications. Sun's Java EE tutorial is a good one to start with.

Similar Threads

  1. Replies: 1
    Last Post: 10-02-2008, 07:02 PM
  2. Replies: 1
    Last Post: 10-02-2008, 07:01 PM
  3. Replies: 1
    Last Post: 08-05-2008, 10:18 AM
  4. Replies: 6
    Last Post: 07-28-2008, 06:04 PM
  5. Multiple Users
    By peiceonly in forum Threads and Synchronization
    Replies: 5
    Last Post: 06-09-2008, 09:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •