This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

Preferred Java technologies to write a website such as 43things or craigslist

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am starting to explore Java technologies and before jumping into my choices (Hibernate & Struts), thought I will put a question as to what my fellow developers recommend.
What would be your preferred Java (ideally) technologies to write a fairly extensive website such as 43things or craigslist?
I did do a search and found the following is the closest and only thread I found
Topic: What technologies should I use for new web app?

If this is the wrong forum, I do not mind it being moved to another more appropriate one.

Posts: 43011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Well, that other thread is a start. JSF is debatable for the web framework, and Struts is slowly starting to be on its way out. If you can use Java 5, have a look at something like Stripes.

Whether ot not an Apache web server in front of Tomcat is actually necessary depends on your circumstances. Tomcat has made big performance strides in static file serving (which is what Apache httpd was used for in such a setup).
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Hibernate is great (the only exception being applications that rely on *insanely* complex stored prcedures).

2. Business logic layer:
i'd consider Spring. It intorduces great design ideas, simple declarative security, and more. Even when I don't use it, I find myself following its cool design principals.
(For complex, replicated applications you might consider EJB, which can also replace Hibernaete. Unfortunately EJB is on a cross roads right now: the old EJB 2 is strongly criticized for bad cumbersome design. The new EJB 3 is cleaner and more modern, but it has much less literature and less production experience).

3. Controller - one of the 3: JSF , or Struts, or the newer 'Struts Action 2'.
The choice is a matter of personal taste... I'd consider 3 factors:

a) Design & complexity:
JSF is 'Component Based' - enhances component reusability, at the cost of being more complex to learn & trace (I've also heard some complaints about JSF performance, but I havent' checked them closely).
Struts (and Struts Action 2) is 'Action Based'. Meaning a simpler flow, more straight-forward to lean and trace. You can still have good design and reusability, but not a fancy as those of JSF.

b) IDE support & Wizards:
All 3 frameworks require you to implement some interfaces, *and* create some XML files.
Now, JSF and the *old* Struts both have a fair share of IDE support, especially wizards to generate code skeletons, XML files, and graphical viewers to show application flow.
The new Struts Action 2 doesn't have that much IDE support, you'd probably need to manually type the code + xml files ( It's quite simple, personally I don't mind it, but if you like wizards and graphical views, it's a problem).

c) Job interviews: I've seem demand for both JSF and *old* struts.
You might try to follow the addes in your country, see which is more in demand, or is one quickly gaining on the other (even if you're not looking for a job, it's good to know your market value).
The new Struts Action 2 is less likely to come up in interviews, interviewer isn't always guaranteed to have heard of it...

Good luck
[ March 13, 2007: Message edited by: Sol Mam-Orn ]
Amit C
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf, Sol, Thanks for the reply.

Sol, Special thanks for breaking up the different aspects.

For other readers, I also read the following yesterday and it might help:
Comparing Web Frameworks: Presentation and Discussion. Covers Struts, Spring, Tapestry, WebWork, and JavaServer Faces
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!