Geeks Talk

Prepare for your Next Interview




why we shift Servlet to JSP ?

This is a discussion on why we shift Servlet to JSP ? within the JSP forums, part of the Web Development category; What is the main reason to shift Servlet to JSP ? I found one reason, that is "Easy to edit the coding in JSP not Servet". At present developers ...


Go Back   Geeks Talk > Web Development > JSP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-03-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
why we shift Servlet to JSP ?

What is the main reason to shift Servlet to JSP ?

I found one reason, that is "Easy to edit the coding in JSP not Servet".

At present developers mostly used servlet of jsp.....plz clarify this one.

----------------
suresh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-03-2007
Expert Member
 
Join Date: Jun 2006
Posts: 140
Thanks: 2
Thanked 12 Times in 9 Posts
Jim.Anderson is on a distinguished road
Re: why we shift Servlet to JSP ?

JSP doesn't give you anything that you couldn't in principle do with a servlet. But it is more convenient to write (and to modify!) regular HTML than to have a zillion println statements that generate the HTML. Plus, by separating the look from the content you can put different people on different tasks: your Web page design experts can build the HTML, leaving places for your servlet programmers to insert the dynamic content.

read some notes here ..

Servlets and JSP: An Overview
Reply With Quote
  #3 (permalink)  
Old 01-03-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: why we shift Servlet to JSP ?

Thanks buddy.....its really helpful to me...

----------------
suresh
Reply With Quote
  #4 (permalink)  
Old 06-11-2008
Junior Member
 
Join Date: Apr 2008
Location: NJ,USA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
asingathi is on a distinguished road
Re: why we shift Servlet to JSP ?

The primary goal of JSP is to replace Servlets because of few reasons:
> to reduce development cost, and also burden of the jsp developer to write most common statements like package declaration, import statement,
class declaration and life cycle methods etc..
> in jsp no need to implement the life cycle functions like init(), service() and destroy() method.
> jsp presents dynamically retrieved data from the different layers of java web application development.
Reply With Quote
  #5 (permalink)  
Old 06-26-2008
Junior Member
 
Join Date: Jun 2008
Location: Noida, India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
shishirlearnz is on a distinguished road
Re: why we shift Servlet to JSP ?

See the basic difference is that:

In Servlet
----------
You have to code whole HTML into ur java....

In JSP
-------
You are to code Java inside HTML

Well everybody knows that the latter is much easier than former.
Reply With Quote
  #6 (permalink)  
Old 06-30-2008
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
puneetaries is on a distinguished road
Re: why we shift Servlet to JSP ?

Quote:
Originally Posted by psuresh1982 View Post
What is the main reason to shift Servlet to JSP ?

I found one reason, that is "Easy to edit the coding in JSP not Servet".

At present developers mostly used servlet of jsp.....plz clarify this one.

----------------
suresh
well jsp is good for presentation ..while servlets is good for content generation ...a good web application consists both only jsp only servlet application are ugly and rare nowadays
Reply With Quote
Reply

  Geeks Talk > Web Development > JSP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Path for storing JSP or servlet files JobHelper JSP 1 01-05-2007 12:48 PM
Answer for Career Shift RyanJames Interviews 1 08-14-2006 05:15 AM


All times are GMT -4. The time now is 02:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved