Re: Main class for a struts webapp...
Noted. I thank you all for your clarification and information. --- Yan Hu <[EMAIL PROTECTED]> wrote: > --- "O. Oke" <[EMAIL PROTECTED]> wrote: > > > Can anyone please tell me where the "main" (public > > static void main...) class of a Strus web > application > > can be found. 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? > > > > Thank you. > > Struts is in fact a servlet. Servlets do not need a > main in order to run. Instead, they are > registered with your servlet containers such as > Tomcat. And then Tomcat will run them. I would > suggest you read a servlet book or tutorial before > you learn Struts. > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Main class for a struts webapp...
--- "O. Oke" <[EMAIL PROTECTED]> wrote: > Can anyone please tell me where the "main" (public > static void main...) class of a Strus web application > can be found. 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? > > Thank you. Struts is in fact a servlet. Servlets do not need a main in order to run. Instead, they are registered with your servlet containers such as Tomcat. And then Tomcat will run them. I would suggest you read a servlet book or tutorial before you learn Struts. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Main class for a struts webapp...
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]
Re: Main class for a struts webapp...
O. Oke wrote: Can anyone please tell me where the "main" (public static void main...) class of a Strus web application can be found. 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? Er... I think you may have some misconceptions about how this whole Java thing works. Bottom line, there isn't one, which answers your question in a completely useless way. What do you really want to know? The entry point into a Struts Action (Action.execute)? How that Action gets mapped from a URL to a class (struts XML config files along with the default RequestProcessor)? How to understand the entire Struts framework? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Main class for a struts webapp...
it's somewhere deep inside the servlet container. I think what you need to look at is the action servlet, which is defined in the web.xml in a struts webapp O. Oke wrote: Can anyone please tell me where the "main" (public static void main...) class of a Strus web application can be found. 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? Thank you. --- Gareth Meyrick <[EMAIL PROTECTED]> wrote: hi, perhaps the subject should be stout vs. porter vs. bitter vs. pale ale vs. pilsner;) as an open source advocate and user, i usually recommend open source solutions. however, i have a rapidly growing client that is uncomfortable with open source, and has plenty of money. i haven't worked with many recent commercial J2EE application servers, or other the pieces that i'll need. while i have my opinions, i'd like those of the community so that i can present an unbiased (ok - less biased;) presentation of the client's options. comments like "IMO product X has the following advantages and disadvantages" would be greatly appreciated. J2EE app servers? RDBMS? integration issues (eg: one vendor's app server talking to another vendor's RDBMS)? as the implementation will involve some open source frameworks, any vendor specific issues (eg: with Struts or Hibernate)? etc.. TIA & have a great weekend -gm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Chad S. Lauritsen The Sherwin-Williams Company Paint Stores Group MIS 101 West Prospect Ave End User Computing Specialist 1125 Republic Voice 216-566-1525 FAX 216-566-3536Cleveland, OH 44115 PGP Public Key: http://planetlauritsen.com/chad/keys/work.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Main class for a struts webapp...
Can anyone please tell me where the "main" (public static void main...) class of a Strus web application can be found. 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? Thank you. --- Gareth Meyrick <[EMAIL PROTECTED]> wrote: > hi, > > perhaps the subject should be stout vs. porter vs. > bitter vs. pale ale vs. > pilsner;) > > as an open source advocate and user, i usually > recommend open source > solutions. however, i have a rapidly growing client > that is uncomfortable > with open source, and has plenty of money. > > i haven't worked with many recent commercial J2EE > application servers, > or other the pieces that i'll need. while i have my > opinions, i'd like > those of the community so that i can present an > unbiased (ok - less > biased;) presentation of the client's options. > comments like "IMO product > X has the following advantages and disadvantages" > would be greatly > appreciated. > > J2EE app servers? > > RDBMS? > > integration issues (eg: one vendor's app server > talking to another vendor's > RDBMS)? > > as the implementation will involve some open source > frameworks, any > vendor specific issues (eg: with Struts or > Hibernate)? > > etc.. > > TIA & have a great weekend -gm > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]