File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlets for actions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets for actions" Watch "Servlets for actions" New topic

Servlets for actions

Supri dharshni

Joined: Jul 14, 2009
Posts: 25
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.

Thakur Sachin Singh
Ranch Hand

Joined: Jun 15, 2010
Posts: 238

read java design patterns for good approach.

SCJP 6- 91%, IBM DB2, IBM RAD Certified
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

Please read this article, paying particular attention to the Front Controller pattern.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Servlets for actions
It's not a secret anymore!