Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

httpServlet and action servlet

 
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.
 
Ranch Hand
Posts: 3389
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: 3389
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: 3389
    Mac MySQL Database Tomcat Server
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Its my pleasure Kethan
     
    Consider Paul's rocket mass heater.
      Bookmark Topic Watch Topic
    • New Topic