• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP and Servlets need help learning

 
Joe Daly
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i have recently tried to delv into the world of java ee, jsp and serverlets i have:
http://www.amazon.co.uk/Java-Development-NetBeans-David-Heffelfinger/dp/1849512701/ref=sr_1_1?s=books&ie=UTF8&qid=1356116909&sr=1-1
and i am getting:
http://www.amazon.co.uk/Head-First-Servlets-JSP-Certified/dp/0596516681/ref=sr_1_1?s=books&ie=UTF8&qid=1356116917&sr=1-1
i cant seem to get a good grip on the first one because its not very beginner friendly so does anyone have advise on how i could learn more easily, effectively and quickly,
i am fairly competent in core java and some other object oriented languages, but this stuff seems really really difficult.
Thanks in advanced.


oh and i am sorry if this is the wrong place to post i'm sorta new
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Head First book should help a lot. Web development is tough. Don't let anyone tell you otherwise.
 
Joe Daly
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
after reading a few pages of the 1st book i mentioned im really finding this hard but i am hoping the head first book will clear things up a bit
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no experience with the first book. But just the fact that it's about an IDE makes it suspect to me. There are a lot of poor books out there.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, bear in mind that JEE is a humongous, bloated, over-engineered, and overly complex ecosystem.

Ignore everything other than JSP and servlets. If you try to consume then entire thing, it'd be like trying to eat every buffet in Vegas at one sitting. No one, but no one, uses everything in JEE.
 
Joe Daly
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya see i thought i was going to have to learn it all
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe

As Bear has already indicated, get your head around application server containers and servlets and the rest will follow.
 
Joe Daly
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok but does what Application server i use effect how i should code?? and whats the difference between a application server and a application server container
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Daly wrote:ok but does what Application server i use effect how i should code?

No. In fact, doing so is a poor practice (unless you have a really really really good reason to do otherwise).

and whats the difference between a application server and a application server container

There's no such thing a an "application server container".

The term "application server" means different things to different people.

Generally though, an "app server" is one that has some sort of application engine that allows dynamic content to be generated and for code to be executed on the server. In the case of Java web apps, that's any server with a "servlet container".

A servlet container is the component of a web server that runs servlets.

 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are 2 main application server containers:

http://www.theserverside.com/feature/Understanding-How-the-Application-Servers-Web-Container-Works

Web and EJB.

Web is the main one which you should get to grips with.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term is "servlet container" and EJB is not a servlet container. It's its own thing.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have to disagree with you there Bear. A web container runs servlets and JSPs amongst others. A EJB container runs, you guessed it, EJBs.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, an EJB container is not a servlet container. That's exactly what I said.

 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, an EJB container is not a servlet container


I never said it was. I referred to 2 containers - Web and EJB.
 
Joe Daly
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh ok cool
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic