I'm confused with the struts.action and those in the actions package-help

hi all
looking at the struts framework particularly the org.apache.struts.actions package, i am a bit of confused as to which abstract action class i need to extend in my application. is there any guideline that shows in what scenario i will need to extend which action? how would i ever know the purpose of each one and how and when to extend it?
and also i am even more confused when i saw org.apache.struts.action.action class. doesn't this one handle all? most tutorials i have seen reference this class. why do we have others in the actions package?
your help is much appreicated . thanks.

Simple actions just extend org.apache.struts.action.Action.
Those actions in the org.apache.struts.actions package are utility Actions that provide you with extra functionality.
The [url http://struts.apache.org/api/org/apache/struts/actions/package-summary.html]struts api  describes the basics of each one.
Commoonly used ones that (to me) are of more interest:
ForwardAction is pretty much just a placeholder that lets you specify a url to forward to when you don't want to write an entire Action.
Dispatch action (and its siblings LookupDispatchAction, MappingDispatchAction) are most interesting because they let you use the same action for multiple events.
In effect it is writing multiple "execute" methods in one action. The Dispatch action determines which one to call. It is useful for writing CRUD actions and keeping all that code in one class.
Hope this helps some,
evnafets

Similar Messages

Maybe you are looking for

  • 10.5 Finder search windows no longer find files!!!!

    We have a new X Serve with OS 10.5 Server and Three Macs running OS 10.5 Family pack. The X Serve holds all of our work files. The other Macs are simply work stations. Up until recently we have been able to search the X Serve for files by typing in a

  • ITunes doesn't let me rename imported voice memos

    iTunes 10.5.2 (11) I'm finding that I can't rename tracks I've imported from iPod (Voice Memos) since updating to latest iTunes. I type in the new name for the track then, when I click another track, the renamed track reverts to the original name aga

  • Blue screen with Hyper-v on T410

    Since Microsoft did not put Hyper-V on Win7, my company was forced to install Server 2008 R2 on quite a few machines. My sales people need to do demos and in some cases project them so I installed the Intel 8.15.10.2104 driver (meant for Windows 7 bu

  • How to CIF product locations for many parts from R/3  to SCM SPP

    We are trying to CIF product locations of 2500 parts. We are able to take only 10 parts in one transfer. Can anyone help us with this. How do we transfer all these parts in a single attempt.

  • The new Itunes 6.0 won't play any songs

    Since i downloaded the new i tunes software, neither quicktime nor itunes will work. itunes opens but won't play any of my songs, and i think it has to do with quicktime.when i click on quicktime, it won't open and says that there is an error. maybe