What is difference between servlet and jsp

Showing Answers 1 - 3 of 3 Answers

pranuthi

  • Oct 20th, 2005
 

JSP is Java code embedded in HTML; the Java code is compiled (if necessary) and run by the container on the server and the client only sees the results of that code's execution mixed in appropriately with the html.

Servlets are compiled pure Java class files (not mixed with HTML) that get posts from the client and send html to in return.

  Was this answer useful?  Yes

Dharmendra singh

  • Nov 18th, 2005
 

jsp is the server side programme where the java code can embeded into the html tag. whereas servlet is pure java class where the entire

html page can be genrated

  Was this answer useful?  Yes

Dinesh

  • Nov 19th, 2005
 

Servlet is used to exceute on the webbased,which is used to seperate the Dynamic and static Content.It acts as a Controller in MVC .JSP is a Presentation Layer.Which has the Dynamic Html it embedded with java code.Its use to mix both Dynamic and Static content

  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