This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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!
Give a man a fish, he'll eat for one day. <br />Teach a man to fish, he'll drink all your beer.<br /> <br />Cheers,<br /> <br />Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Rufus BugleWeed
Ranch Hand
Joined: Feb 22, 2002
Posts: 1551
posted
0
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
Joined: Oct 04, 2003
Posts: 541
posted
0
essentially JSPs have (Java) Code embedded within the HTML Servlets generate HTML code from a pure Java program
Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Ko Ko Naing
Ranch Hand
Joined: Jun 08, 2002
Posts: 3178
posted
0
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
Co-author of SCMAD Exam Guide, Author of JMADPlus SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.