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...

what is the difference between Servlet and JSP?Advantage of
JSP over Servelt?Any concept present in JSP which we cant
implement in Servlet?

Answer Posted / sree

Servlet is a Java Mechanism which is a part of J2SE(J2SE was also said by some pgmers as Java 2 Servlet edition) and further implemented into J2EE and now on JEE. The difference between servlets and jsp is that in JSP each page is considered as a single dynamic page from which the reference to other pages are very easy ... for example.. in servlet to forward a page from html we use:<form method=post action="http://localhost:8080/ctxt/java_class"> but in jsp we just give <form method=post action="filename.jsp"> ! But how does this work.. The server just takes the filename.jsp and converts that into a filename.class and inserts http://localhost :8080/ctxt root in front of it(A virtual assumption for understandability) and communicates...so the programming complexity is generaaly reduced.. and ther are loo of differences given by others and hence i just liked to share this information with you people.
Thankyou.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is that servlet is pure java object or not?

1127


What is called servlet mapping?

1084


What are the different mode that servlets can be used?

1023


What is the life-cycle of servlets?

1141


When a servlet accepts a call from a client, it receives two objects. What are they?

1248


What if you need to span your transaction across multiple servlet invocations?

1094


What's the servlet interface?

1089


How to get the actual path of servlet in server?

1226


What's the advantages using servlets than using cgi?

1006


How do I know if java is running on linux?

1129


How will you pass values from HTML page to the servlet?

1054


What is ServletContext object?

1109


What is the inter-servlet communication?

1178


What’s the difference between forward() and sendredirect() methods?

1022


What are the ways to handle multi-threading in servlets?

1086