aspose file tools*
The moose likes Servlets and the fly likes Are Servlet days numbered? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Are Servlet days numbered?" Watch "Are Servlet days numbered?" New topic
Author

Are Servlet days numbered?

ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
With the advent of component based frameworks like Tapestry/JavaServer Faces
what will happen to next generation of Java web developers?

Do they have to still learn the basics of Servlets? or learn the Framework directly?

I would say yes to learning the servlet basics first. I would like to know what others think?.


java j2ee job interview questions with answers | Learn the core concepts and the key areas
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

There are so many running projects using servlets.
I'd say "let's learn servlets". No waste of time.


[My Blog]
All roads lead to JavaRanch
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
A solid understanding of the basics is always beneficial. Web apps are built on HTTP, and that fact tends to come back to bite you in the most inconvenient moments. Servlets let you get pretty close to HTTP, so I think yes, it does pay off to learn about them. Some facts of JSPs are also much easier to understand if one has a grasp of how they are compiled into servlets.


Ping & DNS - updated with new look and Ping home screen widget
Chris Brat
Ranch Hand

Joined: May 22, 2003
Posts: 108
I'd definitely say learn the basics though I prefer to use a framework.

I think most frameworks refer back to the servlet design/logic basics either to explain the inner workings of the framework itself (struts documentation describes its controller servlet and compares JSP include logic with Tiles) or how the framework aims to overcome perceived problems with Servlets and JSP.

Do all Java web developers eventually gravitate to a framework though ?

Chris


SCJP 1.2, SCJP 5, SCBCD
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
I think you definitely need to know servlets. Sometimes you need to write a very simple app where the overhead of a framework is simply not worth it. Other times you need to access the servlet layer directly from a framework. J2EE is and probably always will be either directly based on or very closely tied with the servlet API and I don't see how you can avoid knowing such basics as a good engineer.
Thibault Dangr�aux
Greenhorn

Joined: Dec 12, 2005
Posts: 19
Sometime, you also need to get your hands dirty and do some low level stuff. And then, the best technology often remains the servlet and plain old Java.
Some examples might be :
- serving binary content, for instance images. Applications might be watermarking images, applying transformation on images or generating images on the fly.
- generating views that are highly recursive. For instance, rendering a complex navigation bar is a pain in JSP or any view technology, but very straightforward in Java (through include mechanisme) or a custom tag. The first is often easier when you need a real controller to prepare the structure before rendering it in a "Java view".
- doing some very specific stuff that falls outside a framework.

Besides, some framework do not protect you from the details of how servlet works. For instance, Spring MVC controllers are pretty close to a servlet. I don't think you can do anything serious in them if you have no idea on how a servlet works.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Are Servlet days numbered?
 
Similar Threads
need to offset a date by intervals of 1 year
Love to code without JSP
Help me to learn Struts from the basics
java + finance
what to do after learning the basics