aspose file tools
The moose likes Servlets and the fly likes Servlets for actions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlets for actions" Watch "Servlets for actions" New topic
Author

Servlets for actions

Supri dharshni
Greenhorn

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.


Regards,
supri
Thakur Sachin Singh
Ranch Hand

Joined: Jun 15, 2010
Posts: 209

read java design patterns for good approach.


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

Joined: Jan 10, 2002
Posts: 56205
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlets for actions
 
Similar Threads
Design Question
actions are not servlets..then what is the purpose of adding servlet elements for action in web.xml
Connecting to a local (microsoft) database, best approach?
Getting error while running BeerStruts example
Collaboration between Struts Actions and plain old Servlets