aspose file tools*
The moose likes Struts and the fly likes Simple controller needed ASAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Simple controller needed ASAP" Watch "Simple controller needed ASAP" New topic
Author

Simple controller needed ASAP

Rick DeBay
Ranch Hand

Joined: Jul 11, 2003
Posts: 70
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.
Carleton Harrison
Greenhorn

Joined: Jan 11, 2004
Posts: 14
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 ]
Rick DeBay
Ranch Hand

Joined: Jul 11, 2003
Posts: 70
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
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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 ]
Rick DeBay
Ranch Hand

Joined: Jul 11, 2003
Posts: 70
Has anyone used Slim?
Carleton Harrison
Greenhorn

Joined: Jan 11, 2004
Posts: 14
Hello !
Oliver: Yes, you are right... Struts is "bundled with" TOMCAT, which is what I was referring to...
Thanks !
CH
Carleton Harrison
Greenhorn

Joined: Jan 11, 2004
Posts: 14
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
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
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.


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Simple controller needed ASAP