• 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

Private message functionality

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm not sure if this is the right form for this (if it isn't, i apologize). i want to add a functionality to my web app that a user can send other user a private message that will be saved in the other user's mail box. I was thinking of using database to store and retrieve messages. Is this the right approach, if its not could someone please tell me what would be better. I'm not asking for the code but what to study or consider. This is my design so far, Servlet retrives the message from JSP text box and passes it to the bean that stores it in the database with the sender and recievers id (same functionaily of retriving it). THanks for your time.

Regards,
Mala
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A database is how I would do it.
 
Mala Sharma
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Ben,

Thanks for replying. Could you please explain to me the functionality of getting something like "MSN Messenger" on a website where viewers can chat one on one. Whats involved there. Again, i'm not asking for the code but direction on what i would need to use and learn. A little psuedocode(algorithm) would help. THanks a lot.

Mala
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a big difference between 'private messages' (which is sort of a lightweight e-mail), and instant chat. I would use a DB for messaging, but not for chatting. (I wouldn't use HTTP at all for chatting, but that's another issue).
[ February 22, 2005: Message edited by: Bear Bibeault ]
 
Mala Sharma
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Bear,

Thanks for replying. Ben clarified that my approach for private messaging was right. I didn't want to start a new thread to ask for chatting (sorry if that created confucion). What would you use for chatting? Whats the normal practice because i don't understand the concept at all. Only thing i know is you should NEVER go to database for doing that. Could you please point me to right direction on this. I just want to know what i should learn or look into. Thanks a lot.

Mala
[ February 22, 2005: Message edited by: Mala Sharma ]
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most chat apps I've seen that run in a browser use an Applet rather than HTTP.
 
Mala Sharma
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Bear,
Could you please elaborate on it some more so i would have a general idea on what to look into and study. If you explain the flow, it would help me immensely in designing one (i know there must be some example if i google it, but i want to desgin my own without looking at any code). I would really appreicate it. THanks for your time.

Mala
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, not my area of expertise -- nor is it a JSP question, so you'd be better off asking such a question in the Applet or Networking forums.
[ February 22, 2005: Message edited by: Bear Bibeault ]
 
Mala Sharma
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear, I'll ask there
 
reply
    Bookmark Topic Watch Topic
  • New Topic