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

Showing Answers 1 - 2 of 2 Answers

surya

  • 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

  Was this answer useful?  Yes

bhadrinath

  • Jun 16th, 2010
 

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

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions