Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

httpServlet and action servlet

 
keshan mathew
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 2
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    hello raghavan

    Thanks for the replay.
    Its of great use for me since i am new to java.
     
    Raghavan Muthu
    Ranch Hand
    Posts: 3381
    Mac MySQL Database Tomcat Server
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Its my pleasure Kethan
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic