aspose file tools*
The moose likes Struts and the fly likes httpServlet  and action servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "httpServlet  and action servlet" Watch "httpServlet  and action servlet" New topic
Author

httpServlet and action servlet

keshan mathew
Greenhorn

Joined: Dec 24, 2007
Posts: 2
Hi

Can any one tell me the difference between normal servlet and action servlet in struts
and a java bean and struts action form.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Howdy Kesh,

Welcome to JavaRanch

First thing you got to update is your display name. Ranch is a very friendly forum which has very less strict policies and one among them is the
display name. Please have a look at this page. You can update your name by editing your profile


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Originally posted by kesh:
Hi

Can any one tell me the difference between normal servlet and action servlet in struts
and a java bean and struts action form.


Well. ActionServlet is also a Servlet but with some speciality included. Hope you know about what a Servlet actually is.

This ActionServlet is Struts specific and it is the one which
  • reads the struts-config.xml file and
  • decides which action class to invoke based on the input request
  • regulates the flow from the JSP to Action class and vice versa.



  • A Java Bean is a component that has got some properties and a pair of mutator/accessor methods. [also called as Setter/Getters]. An Action Form is also a kinda JavaBean but it has got some other reset() methods etc., using which you can reset the properties of all properties.

    Does that help?
    [ December 26, 2007: Message edited by: Raghavan Muthu ]
    keshan mathew
    Greenhorn

    Joined: Dec 24, 2007
    Posts: 2
    hello raghavan

    Thanks for the replay.
    Its of great use for me since i am new to java.
    Raghavan Muthu
    Ranch Hand

    Joined: Apr 20, 2006
    Posts: 3355

    Its my pleasure Kethan
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: httpServlet and action servlet