Prepare for your Next Interview
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 ...
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
Re: why we shift Servlet to JSP ?
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
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |