From: "O. Oke" <[EMAIL PROTECTED]>

To put it another way, when I click a
button in an HTML form, which "main" class kick starts
the chain of processing that eventually leads to my
action class being executed?

The "entry point" for Struts is in the doPost (or doGet) method of
org.apache.struts.action.ActionServlet.  (Prior to that, your Servlet
container did some work that you probably aren't interested in.)  After
ActionServlet, the [Struts 1.2.7] RequestProcessor will figure out which of
your Actions it should call.

The best way to see what really happens is to watch it in a debugger.  I use
JSwat, and have some instructions on how to get it working with Tomcat here:
http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatDebug

Having set a breakpoint at the first line of the 'execute' method in my own
action class, the stack shows:

1. ChooseProfileAction.execute()
2. RequestProcessor.processActionPerform()
3. RequestProcessor.process()
4. ActionServlet.process()
5. ActionServlet.doGet()
6. HttpServlet.service()
... all the way back to ...
47. Thread.run()

HTH,
--
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to