Difference between servlet and JSP

Server side java language used to control view pages and data flow in it.
Html code can be embedded inside servlet using printwriter

  Server side scripting language that can embed java into HTML program.
Helps mainly to bind server side data into design page.
Allows us to embed Java code in HTML page

which is better jsp or servlet

            When you have more stuff to do with design part just go with jsp and use servlet a intermediate layer to communicate with design and Business layer.

Related Post