• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlets in struts framework

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how many servlets are there in struts framework ???

Can i say my Action class is a servlet ???
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Action is not servlet. Action classes are model in FrameWork..

ActionServlet is servlet in Struts Framework.

Type of Action Classes :

Action
DispatchAction
LookupDispatchAction
ImageLookupDispatchAction
ForwardAction

Which used as per application requirements.


 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Alpesh Padra wrote:Action is not servlet. Action classes are model in FrameWork..


Action classes are model? can you please explain?
 
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Action is the controler, Form is the model.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are no Model components in the Struts framework. One of the biggest misconceptions is that business logic should be coded in Action classes and that ActionForms are model data.

Struts is a framework for building the View and the Controller parts only.

All of the Struts classes that start with 'Action' are part of the Controller and the developer writes Action classes to customize the behavior of the Controller.

Struts is called a MVC framework because it "helps" with creating a MVC-based application. However, it does not provide anything for the Model part.

That said, when developers attempt to write a Model in the Struts (it can be done), there typically are failures and unwanted dependencies as well as a bunch of other crap
 
Jigar Naik
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Frank for the detail information... Thank you everybody...

all my doubts are clear now...
reply
    Bookmark Topic Watch Topic
  • New Topic