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
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
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
Thanks buddy.....its really helpful to me...
----------------
suresh
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.
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.