SQL Oracle Java JSP JDBC MORE

JSP Tutorial


JSP (java server page) is a server-side programming technology for making a web application.

JSP File can Contain HTML, CSS, Java Script code.

The extension of JSP file is “.jsp”.

What can JSP do?

  • JSP can create, open, read, write, delete and close files on the server.
  • JSP can collect form data.
  • JSP can add, delete, modify data in our database.
  • JSP can be used to control user access.
  • JSP can encrypt data.

Why JSP ?

Run In Any Platform:

JSP runs on various platform like windows, Linux, Unix, mac OS etc.

Easy To Maintain:

Easy to maintain because we can separate our presentation logic and business logic.

Fast Development:

Suppose we modify a JSP file, then we don’t need to recompile and redeploy the project.

Less code:

JSP file having less code as compare to servlet file.

Example

Hello world program

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>

<% out.print("Hello World!"); %>

</body>
</html>