Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to J2EE

 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, Ranchers -
I'm new to J2EE. I have about three months to get familiar with the technology enough to take over maintenance of Web programs for a state agency.
At the risk of sounding too much like a beginner, would anybody share with me where Servlets are more or less advantageous than JSP? Or do they work together? It seems to me that Servlets offload processing from the client, and that JSP delivers the data for the client to process/display. Am I getting warm?
Thanks!
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No you're not getting warm...
A JSP is a servlet that gets compiled.
You might start with Marty Hall's book. I think you can download or read online the old version for free. Or the J2EE tutorial will get up to speed.
HTH
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
essentially
JSPs have (Java) Code embedded within the HTML
Servlets generate HTML code from a pure Java program
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In MVC Architecture, servlets are usually responsible as Controllers and JSPs are responsible as Views... What you understand as the following is correct too...
It seems to me that Servlets offload processing from the client, and that JSP delivers the data for the client to process/display. Am I getting warm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic