Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets for actions

 
Supri dharshni
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

In my new project they are using the servlet classes for all actions.That is no frameworks like struts,spring is used.They are using the servlet classes throught out the application.Say to add a user ,delete a user etc... for each action they are calling a separate servlet class. Is it the correct way to proceed ? Upto my knowledge the servlets can be used to load anything during the start up is the effective way.

If using servlets for all actions is not the proper way then please let me know how we can modify in the better way. Experts please help.


Regards,
supri
 
Thakur Sachin Singh
Ranch Hand
Posts: 248
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
read java design patterns for good approach.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this article, paying particular attention to the Front Controller pattern.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic