File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes New to Servlets! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "New to Servlets!" Watch "New to Servlets!" New topic

New to Servlets!

Anuradha Prasanna
Ranch Hand

Joined: Mar 09, 2006
Posts: 115
Hi all,

Iam new to servlets.
Can anyone suggest me a good book?
Should servlets and jsp should be learned together?

Also as a beginner in web applications i have a few doubts. I dont know if this is the right place to ask.
What are Applets, Spring, Struts, Hibernate, Ajax? are they related to servlets & jsp?
If i wanted to learn all these in a short period, what should be the order i should go in?
Any clarifications and books on the above topics are welcome.

SCJP 6.0 90%
David Newton

Joined: Sep 29, 2008
Posts: 12617

You won't be able to learn them all in a short period--that's not the way real learning works.

Yes, you should learn servlets and JSP together.

As to what the other technologies are, some simple web searches will provide answers. Only Struts is (somewhat) related to servlets and JSPs, although Spring has a web component, applets are *used* on the web (or were, not so much now), and Ajax is web-related and might use servlets and/or JSP. The order? Which is the most important to you? Start there.
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 484

Which is the most important to you?

As David said , you must see what the important thing you wanna learn now , in my view if you are new to j2ee i think you need to learn the basic stuff like servlets and jsp then you can move to MVC framework like Struts for example..

Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 650
Welcome to Servlets (and JEE, for that matter)!

I agree that Servlets and JSP is a great place to start. These really operate hand-in-hand, as the Servlet is used as the back-end application logic processing, and the JSP is used as the UI page (handling user input and display of data).

There are a lot of great resources available. Have a look at these:

The second link provides free downloads to all the chapters of the book in PDF format.

One thing I would roll right into after learning Servlets and JSP is JSTL. JSTL is the Java Standard Tag Library, and it solves a lot of the shortcomings found in the built-in JSP tags.

I would like to offer one caution: The books and tutorials on JSP do include examples of the JSP being used for application logic as well, using JSP Scriptlets (placing Java code in the JSP page). I think they do this because it's easier to produce the examples in this way - rather than also creating a Servlet. Just keep in mind that in real applications, you don't want any Java code in the JSP pages. All the business logic goes in the Servlet (or helper classes). If you're ever tempted to place Java code in your JSP page, just ask here about alternatives

Good luck on your learning journey!

Anuradha Prasanna
Ranch Hand

Joined: Mar 09, 2006
Posts: 115
Thank to all of you for the great tips!
Iam going to start with servlets and jsp.

I agree. Here's the link:
subject: New to Servlets!
It's not a secret anymore!