I've just been tasked with creating the view and controller for a web directory. The initial site needs to be completed by the first week of February. After testing and feedback I get another month or two to rewrite and deploy. I plan on using Struts for the final site, but I don't have the time for the prototype site, nor do I have time to write my own controller. Is there a quick and dirty controller available? I don't need validation or anything fancy, just the equivalent of Action and ActionForward.
Hello ! Forgive me in advance if I am misunderstanding your question... but if you use TOMCAT, the controller is built in: org.apache.struts.action.Action org.apache.struts.action.ActionServlet org.apache.struts.action.ActionForm org.apache.struts.action.ActionMapping so, you just use/extend the required/appropriate functionality. And TOMCAT runs on both Linux and Windows... You can get TOMCAT at: http://jakarta.apache.org/ and click on the TOMCAT link within the PRODUCTS section in the left-hand margin. HTH !! CH [ January 11, 2004: Message edited by: Carleton Harrison ] [ January 11, 2004: Message edited by: Carleton Harrison ]
Joined: Jul 11, 2003
We are using Tomcat, it's just that I don't have the time to learn everything about Struts. I have about a week to get the controller portion running, and I'm the only programmer on the project. Hopefully there is something quick, dirty, and easy to allow me to direct requests to the appropriate page, and to load the data required by the view. Thanks, Rick
Hi, Carleton: I think you are not talking about tomcat but you are talking about struts ? Is that right ? Cause the classes you mentioned are all part of the struts framework. Rick: To learn the controller you use is always necessary. Doesn't depend on which product you use. And if you think about implementing it on your own i think you will need a lot more time than just learning struts. BTW: Here is a good place to get some infos for starting with struts [ January 12, 2004: Message edited by: Oliver Refle ]
Hello ! Oliver: Yes, you are right... Struts is "bundled with" TOMCAT, which is what I was referring to... Thanks ! CH
Joined: Jan 11, 2004
Hello ! Rick: Only a week? Here are some good books to get at your local MICROCENTER or Barnes & Noble store: Struts: Kick Start By: James Turner, Kevin Bedell ISBN 0672324725 Struts in Action By: Ted Husted, Cedric Dumoulin ISBN 1930110502 Programming Jakarta Struts By: Chuck Cavaness ISBN 0596003285 Professional Jakarta Struts By: Rick Hightower, James Goodwill ISBN 0764544373 GOOD LUCK !!! (with only having a week...) CH
Thanks for the plug. I believe "Professional Struts" provides a lot of step by step examples on getting started with Struts quickly. (I was so happy to see our book mentioned on the list) "Struts in action" provides a very deep understanding of some of the core concepts as does the Oreilly book. I could not be more bias, and yet I believe "Professional Struts" is geared for the Struts novice becuase of its step-by-step instructions. Also I recommend installing Struts Console IDE plugin (supports most IDEs). This will really help with the learning curve. Of course if you really need to get started quickly, you could hire me to help you get started. I am available for mentoring and consulting.