• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help Needed in building my application.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
anil gowda
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic