What is JSP?
JavaServer Pages (JSP) is a server-side programming technology that enables the creation of dynamic web pages and applications. This is accomplished by embedding Java code into HTML, XML, DHTML, or other document types. When a client such as a web browser makes a request to the Java application container, which is typically a web server, the static page is converted behind the scenes, and displayed as dynamic content to the viewer. It has been speculated that JSP was released to compete with PHP, a commonly used open-source programming language. s for C++ developers.
Usage of JSP:-
- JSP is widely used for developing dynamic web sites.
- JSP is used for creating database driven web applications because it provides superior server side scripting support.
Download Apache server to Run JSP Web Page from herehttp:../httpd.apache.org/download.cgi
Install Apache on your Computer and run your first JSP Page which is given below
First JSP Web Page:-
<title>First JSP page.</title>
<p align="center"><font color="#FF0000" size="6"><%="JSP First Page"%></font></p>
<p align="center"><font color="#800000" size="6"><%="Hello JSP"%> </font></p>
Save the above code with first.jsp name in Apache root directory where you install Apache earlier and open it on browser.