Im new to J2EE and i need help from you all as i'm developing an application where i should be able to following things kindly help me.
My application --------------- 1)Users have to register first. 2)After loging in they must have an option to send and receive messages from each other. i,e they should have a message box where all the messages gets stored.
Please guide me out, i doesnot knw how can i implement this.
I dont know what technologies you apply in your application (Jsp/servlet or both....)
For that I just can only help you some:
Users have to register first.
Create a page that for users to register that including an option to send/receive messages... (can be a HTML page as basic) and submit informations to a Servlet (RegisterServlet) that store information to Database
After loging in
Create a login page and submit info to a LoginServlet to check username/password...If login succeed, store user's information to Session(for later use) and redirect or forward to a Servlet(UserMessageListServlet) that shows a list of messages.
In UserMessageListServlet to could get username from the Session that you set before to load all message of that user....
That all I can tell you for shortly, if you need more help,just email or post your problem here
I'm using Servlets in my application and HTML page for User registration and i have taken following info for registration. 1)first name 2)last name 3)login name 4)password 5)email id
I have created the table for storing these info..and i have created the login page also but i want to know how can i store the user info in the session after they logs in and how can make them send msgs to each other
kindly help, anil
Joined: Nov 29, 2005
Originally posted by anil gowda: but i want to know how can i store the user info in the session after they logs in and how can make them send msgs to each other
You can create a session and store the info in session attribure.
HTTP is a request response protocol.So if you want to have something to send message then the client have to repeatedly look for any new message for a given user in the server.