June 2018
Intermediate to advanced
596 pages
12h 39m
English
Let's now create a JSP page to add new courses. Right-click on the project in Package Explorer and select the New | Other... option. Type jsp in the filter box and select JSP File. Name the file addCourse.jsp. Eclipse will create the file in the src/main/webapp folder of the project.
Type the following code in addCourse.jsp:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Add Course</title> </head> <body> <c:set var="errMsg" ...
Read now
Unlock full access