multiple users with single connection
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
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.