Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


whats the diff between jsp and servlets?

Answers were Sorted based on User's Feedback



whats the diff between jsp and servlets?..

Answer / rajashree

Both use server-side Java to dynamically generate web
pages. The source code to a JSP looks like HTML, with Java
embedded inside funny tags (*); the source code to a
servlet looks like Java, with HTML embedded in out.print
(...) statements. Both use the Servlet API to communicate
with the web server and the client. In fact, a JSP gets
compiled into a servlet, so they're almost identical in
terms of expressive power. The choice is, whether you're
more comfortable coding your pages in Java or in JSP-style
HTML; and since you can call a JSP from a Servlet and vice
versa, you don't have to make an either-or decision.

Is This Answer Correct ?    7 Yes 0 No

whats the diff between jsp and servlets?..

Answer / ravikiran

jsps are mainly used for presentation logic
jsps are java code inside html
servlets are used to write the complex busines logic
servlets are html code with in java

Is This Answer Correct ?    6 Yes 0 No

whats the diff between jsp and servlets?..

Answer / durga ganesh reddy

JSP is used mainly for presentation only. A JSP can only be
HttpServlet that means the only supported protocol in JSP
is HTTP. But a servlet can support any protocol like HTTP,
FTP, SMTP etc

Is This Answer Correct ?    5 Yes 0 No

whats the diff between jsp and servlets?..

Answer / dillip

JSP is used mainly for presentation only. A JSP can only be
HttpServlet that means the only supported protocol in JSP
is HTTP. But a servlet can support any protocol like HTTP,
FTP, SMTP etc.

Is This Answer Correct ?    3 Yes 0 No

whats the diff between jsp and servlets?..

Answer / srinivas

In Servlet Presentation & Application Logic is Tightly
Coupled where as in Jsp they are loosely Coupled.

Is This Answer Correct ?    2 Yes 0 No

whats the diff between jsp and servlets?..

Answer / bijoy baby

Servlets are .java files while JSPs are .jsp pages
Servlets pure java codes embed with HTML
JSPs are HTML pages embed with java code

Is This Answer Correct ?    2 Yes 0 No

whats the diff between jsp and servlets?..

Answer / vinod

Servlets can also be used to integrate with other
presentation library like webmacro etc... and Servlet can
act as pure controller for webmacro whereas jsp can be
alternative only to webmacro not for servlets.

Is This Answer Correct ?    1 Yes 0 No

whats the diff between jsp and servlets?..

Answer / geetha

servlet --no automatic reloading
jsp --automatic reloading.

Is This Answer Correct ?    1 Yes 5 No

whats the diff between jsp and servlets?..

Answer / devi

in servlets the presentation part is very difficult to
write i.e., inserting HTML in Java code. But where as in
servlets it is done very easily i.e., inserting scriplets
in HTML

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Core Java Interview Questions

Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

0 Answers   Genpact,


What are the different http methods?

0 Answers  


What are the different types of multitasking?

0 Answers  


If goto and const is reserve words than why it is not work in java?

0 Answers  


What is javac in java?

0 Answers  


How many types of classes are there in java?

0 Answers  


public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }

7 Answers   iGate,


What is qualitative variable?

0 Answers  


is set interface synchronized by default???

2 Answers   Manhattan,


Give the difference between the println method and sqrt method?

0 Answers  


Which collection is best for sorting in java?

0 Answers  


Can we compare two strings in java?

0 Answers  


Categories