jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes Help Needed in building my application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help Needed in building my application." Watch "Help Needed in building my application." New topic
Author

Help Needed in building my application.

anil gowda
Greenhorn

Joined: Jun 12, 2007
Posts: 12
Hi friends,

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.


thanks in advance,
Anil
Minh Tran
Greenhorn

Joined: Jun 03, 2007
Posts: 19
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

Nice beginning


SCJP 1.4, SCWCD 1.4<br />email:mobject@gmail.com
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
You can complete your requirement using servlets and jsp's.Try downloading Tomcat and learn servlets and jps first ,you will yourself come to know as how to make this application.
All the best.


Rahul Bhattacharjee
LinkedIn - Blog
anil gowda
Greenhorn

Joined: Jun 12, 2007
Posts: 12
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
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help Needed in building my application.
 
Similar Threads
Embedded JMS server.Messaging.
why+beans+are+used?
Applet and JMS
new to JMS , Que- what approach to take for continously listenning messages
Java mail POP mark as read and unread