Posts

Difference between the servlet and jsp

Difference between servlet and jsp Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server.Using Servlets, you can collect input from users through web page forms, present records from a database or another source, and create web pages dynamically. JavaServer Pages (JSP) is a technology for developing web pages that support dynamic content which helps developers insert java code in HTML pages by making use of special JSP tags, most of which start with <% and end with %>. JSP are webpages similar to aspx/php pages which run at client side. Key Differences : Servlet is html in java whereas JSP is java in html. Servlets run faster compared to JSP JSP can be compiled into Java Servlets It’s easier to code in JSP than in Java Servlets JSP is a webpage scripting language that can generate dynamic c
Recent posts