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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is math exp in java?

1009


What is constructor in java ?

1128


What are the escape sequences in java?

984


What if I write static public void instead of public static void in java?

1037


What is string literal in java?

1001


Why is multithreading important?

893


What is the purpose of an interface?

988


Why is stringbuffer not immutable?

1014


what is the difference between thread and runnable types? : Java thread

955


What is difference between arraylist and list in java?

1030


Is a string literal?

1012


What does exclamation mean in java?

1029


Can we call the constructor of a class more than once for an object?

1046


What is arraylist e?

1026


Can you declare an interface method static?

1014