Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Learning JSP  RSS feed

 
Nee Kat
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to JSP and want to learn it quickly. Could anyone suggest an online tutorial or any good book.
Any information/tutorials regarding servlets and EJB (MVC architecture) will be highly appreciated.

Thanks

Nee Kat
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd avoid EJB's for the time being. They're really of very limited use and they'll just bog you down if all you are trying to do is to learn servlets and JSP.
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
A free tutorial is available from Sun Microsystem which i think is a good place to start learning j2ee technology (JSP/servlet,ejb,..)
you can find it at :
http://java.sun.com/j2ee/1.4/download.html nearly in bottom of the page.

if you want a good IDE to work with go and check netBeans 4.1 beta 2
it has j2ee / webservice support addition to JSP / Servlet (and its free of charge)
hope it helps
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you haven't spent some time learning Java, do that first.
A Google search on "Java Tutorial" will bring up plenty.
Get a firm grasp on packages, and the concept of a CLASSPATH for class loading.

After that, learn servlets.
You should start with servlets because they are the most obvious.
Like a piano, they're laid out plain and simple. Pay close attention to how they're threaded and why you should avoid instance variables until you know exactly what you're doing with them.

Once you have a basic understanding of servlets, you are ready to learn JSP.
JSPs get compiled into servlets. They abstract the servlet concepts so that a web designer can work with them without understanding anything about servlets. For a web designer, this is good. For a programmer who doesn't understand servlets, this is like stomping around in deep leaves, you never really know what you're stepping in until it's too late. Once you understand how JSPs abstract servlet concepts, they are a very convenient and powerfull way for you to quickly update the view of your app without mucking in the business logic.

I like "Core Servlets and Java Server Pages" by Marty Hall.
It teaches things in the right order.
It's available for free online: http://pdf.coreservlets.com.
The free version "first edition" is a little dated but still good.
If you can afford it, pick up the second edition and save yourself some headaches getting the examples to run.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Masoud Kalali:
A free tutorial is available from Sun Microsystem which i think is a good place to start learning j2ee technology (JSP/servlet,ejb,..)


I wouldn't prefer J2EE tutorial to begin learning Servlet or JSP. Moreover, the tutorial is quite server specific. But its me.
 
Nee Kat
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all your help and the information.

Nee
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!