• Post Reply Bookmark Topic Watch Topic
  • New Topic

problems in a Chat Client/Server application  RSS feed

 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Freinds,
me and my freinds are developing a Chat Client/Server application.I am core java programmer and has a good knowledge in Servlets/JSPs still we are facing many problems in our project. we want to include the functionalities of real time file sharing and creation and exchange of MIDI sequences in our project.will you please suggest me which one is the best way to implement such type of project with interactive functionalities.
1.Core Networking
2.JMS
3.RMI/IIOP
I want also to know what would be best possible architecture of my web based application.......
there are many problems before us
1.should there be any controller servlet or all JSPs?
2.how would i pop up a splash screen and a swing frame from a jsp for user login details?
3.database connectivity code should be on login page or on any other loginhandler page?
please help us in the best informative way and suggestive books and tutorials!!!thanking you all....If it is necessary i can represent my coding pages here.reply soon.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Tripathi wrote:has a good knowledge in Servlets/JSPs

1.should there be any controller servlet or all JSPs?

These two statements are at odds with each other. Anyone knowledgeable about Servlets and JSP should know that JSPs should only be used for view generation.

2.how would i pop up a splash screen and a swing frame from a jsp for user login details?

You don't, unless you get Applets added into the mix.

3.database connectivity code should be on login page or on any other loginhandler page?

DB connectivity shouldn't be handeld anywhere in the UI. That should be handed by the model classes.

I suggest that you get a handle on good web application basics before embarking on such ambitious a project. Perhaps this article would be a good start.
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read the tutorial.It was nice and so helpful.But i have seen the code for request dispatch and data fetching in the JSPs......isn't that so much effective or that's not the thing you are talking about.If it is not that please give me a suitable example.
please tell me how a dynamic request can be sent from a applet across a network? thanking you.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Tripathi wrote:But i have seen the code for request dispatch and data fetching in the JSPs...

Just because people do it, does not make it a good practice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!