GeekInterview.com
Series: Subject: Topic:
Question: 27 of 78

what are the advantage of servlet over jsp and what are advantage of jsp over java?

Asked by: Interview Candidate | Asked on: Jan 3rd, 2006
Showing Answers 1 - 2 of 2 Answers
surya

Answered On : Jan 3rd, 2006

Advantages of Servlets over jsps:-

(1)servlets are comparatively faster than jsps.

Advantages of Jsps over servlets:-

(1)Easy to write and maintain and comparatively developer friendly

(2)Developer provided with implicit objects that reduces burden

(3)You can mix jsp code and html code together in a single page

  
Login to rate this answer.
bhadrinath

Answered On : Jun 16th, 2010

View all answers by bhadrinath

The first step is to understand the difference between the two..


1. JSP is mailny used for displaying data but servlet is used for providing the business logic

2. JSP can support only HTTP protocol where as Servlet can support other protocols

3. JSP is a seperation between a java class and the display page through java beans but servlet is not

4. JSP provides some implicit objects such as request and response where as you have to specify that in servlet

5. Servlets are faster than JSP because JSP is a tool intoduced to ease the process.

6.The main advantage of JSP is the seperation of the display and business ligic parts.

I think this would be enough for you to decide on selecting the technology to be used..

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.