This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes At a loss to which technology to use... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "At a loss to which technology to use..." Watch "At a loss to which technology to use..." New topic
Author

At a loss to which technology to use...

Dave Brown
Ranch Hand

Joined: Mar 08, 2005
Posts: 301
Hi all,

I was wondering if there are any guides to dermining which frameworks to use when.. I am about to embark on a little learning project to convert a forum application I wrote in another language a long time ago to java, but cant decide whether JSP's & Servlets are best, or to incorporate struts, or even tapestry which from my reading seems very interesting, but might be overkill.

There isnt really much involved to my project, a Registration Page, A Login Page, A Profile Editor, And the forum display screens themselves. Later on down the line I would like to futher enhance it with an RSS feed, and enhance the user profiles, so users can upload images of themselves perhaps, and the message editor in the system has a lot of scope for future enhancements,rather than a plain textarea. Anyway thats just my brainstorming coming out there..

From my limited experience so far with JSP's and servlets I have found I am creating a new servlet for each form post within my applications, so in a project like this I can see lots and lots of servlets.. maybe this is acceptable I dont quite know.

Any thoughts/advice greatly appreciated.

Thanks,

Dave


Regards, Dave Brown
SCJP 6 - [url]http://www.dbws.net/[/url] - Check out Grails Forum
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4456
    
    6

For a relatively simple application, you could probably use just JSPs and Servlets. However, after a while you may yourself writing a lot of "plumbing" type code. Frameworks like Struts and Tapestry take care of the "plumbing" and abstract away a lot of the low-level implementation details, making it easier to write and maintain complex web applications. Struts is relatively easy to learn and use and I find that it's a natural extension of what you do when using regular JSPs and Servlets. There are also many resources available for reference. Tapestry, from what I have read, has a bit of a learning curve to it but after you "get" it, you should be fine.


Junilu - [How to Ask Questions] [How to Answer Questions]
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
My 2 cents ... I'd try the vanilla servlet & jsp approach first. Maybe invest a few days and a few pages in it at least. It will give you a much better appreciation of what Struts (or some other framework) is doing for you, and let you decide if the framework is really worth while.

I had a recent requirement to implement a few pages outside the framework the rest of the app uses (it requires IE6, some users were on NT) and found it very productive to throw up a little framework of my own - one servlet, a couple helper classes, an XML configuration file and Bob's Your Uncle! (I'm told that's Brit for "Hey, I'm done!")


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
 
subject: At a loss to which technology to use...