APPIUM TUTORIAL FOR BEGINNERS WITH EXAMPLE CODE
JSP helps in this situation and provide us flexibility to write normal HTML page and include our java code only where it’s required. We can generate HTML response from servlets also but the process is cumbersome and error prone, when it comes to writing a complex HTML response, writing in a servlet will be a nightmare.This makes it easy to understand and helps a web developer to quickly develop JSP pages. To bridge the gap between java code and HTML in JSP, it provides additional features such as JSP Tags, Expression Language, Custom tags. Since web applications contain a lot of user screens, JSPs are used a lot in web applications. JSP Page consists of HTML code and provide option to include java code for dynamic content.
JSP can be thought as an extension to servlet technology because it provides features to easily create user views. JSP (JavaServer Pages) is server side technology to create dynamic java web application. JSP transformed Servlet Source Code and Class File location in Tomcat.JSP Files location in Web Application WAR File.Simple JSP Example with Eclipse and Tomcat.Some of these topics are very important and we will look into them in more detail in future posts. We will also look into the JSP Comments, Scriptlets, Directives, Expression, Declaration and JSP attributes in brief detail.