Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Simple controller needed ASAP

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone used Slim?
 
Carleton Harrison
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !
Oliver: Yes, you are right... Struts is "bundled with" TOMCAT, which is what I was referring to...
Thanks !
CH
 
Carleton Harrison
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic