Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet as view in mvc

 
seetarama raju
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we use an applet as a view in the model view controller
architecture.
i think iam missing a point here.
can anybody help me with this.
my idea is to have an applet for the admin interface which
communicates with the controller servlet
thanks in advance
seetarama b raju
 
Tim Holloway
Saloon Keeper
Posts: 18364
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're missing a big point. Servlets are not client-server programs, they are transaction handlers. You can't just "log in" and chat with them, you have to send them http requests and process their (http) responses.
If you want to use the MVC paradigm in an applet, that's great - Swing was designed with that idea. But you'd normally only talk to the server when you needed to get or store persistent data or route to a whole new web page or something "heavy" like that. Response times are too slow and unpredictable and the overhead would be phenomenal if every mouse event (for example) had to travel across the Internet and back.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic