Senin, 26 Juli 2021

Difference between Servlet and JSP? Example

Servlet and JSP are two of the most popular Java web technologies to generate dynamic content in Java web applications there is some key difference between them. For example, Servlet is designed for Java developers as most of the coding is done in Java, while JSP was designed and developed for web GUI developers e.g. guys who write HTML and JavaScript and that's why you see the coding in JSP is tag-based. Even though you can use HTML tags as String inside Servlet and Java code as Scriptlet inside JSP, both are considered as bad practices and should be avoided at all costs because they are very hard to maintain.

Lorem ipsum is simply dummy text of the printing and typesetting industry.

Comments


EmoticonEmoticon