JSP technology is used to create web application just like Servlet technology. It can be thought of as an extension to Servlet because it provides more functionality than servlet such as expression language, JSTL, etc.
A JSP page consists of HTML tags and JSP tags. The JSP pages are easier to maintain than Servlet because we can separate designing and development. It provides some additional features such as Expression Language, Custom Tags, etc.
To create the first JSP page, write some HTML code as given below, and save it by .jsp extension. We have saved this file as index.jsp. Put it in a folder and paste the folder in the web-apps directory in apache tomcat to run the JSP page.
Some Steps:-
Performance is significantly better because JSP allows embedding Dynamic Elements in HTML Pages itself instead of having separate CGI files.
JSP are always compiled before they are processed by the server unlike CGI/Perl which requires the server to load an interpreter and the target script each time the page is requested.
Java Server Pages are built on top of the Java Servlets API, so like Servlets, JSP also has access to all the powerful Enterprise Java APIs, including JDBC, JNDI, EJB, JAXP, etc.
JSP pages can be used in combination with servlets that handle the business logic, the model supported by Java servlet template engines
The JSP library has a collection of useful JSP tags, responsible and functionally capable of encapsulating the core utilities typically found in a JSP application. JSTL, known as JSP Standard Tag Library, is a set of tags. This helps make coding in JSP much easier and simplifies the JSP development process. In this lesson, you will learn how to start using this JSP standard library and its various methods and tags.
Learn others - Once you understands the basic of JSP then other related technologies like Spring, Spring MVC, and Spring Boot etc. are become easier to understand.
There are many platforms where JSP is taught, but I will tell you some platforms from where you can learn JSP very well, let me provide you some links and you will see from them, I guarantee that your 100% JSP will be good.
you can learn by YouTubeyou can learn by GeeksforGeeks
you can learn by JavaTPoint
0 Comments
Please let us know how you liked using this website and any query by leaving a comment