Java Reference
In-Depth Information
In our case what we want to do is extract the form used in both login.jsp and
loginerror.jsp into the page fragment.
We simply copied the form from login.jsp and pasted it into the JSP fragment.
The next thing we need to do is modify login.jsp and loginerror.jsp to use the
JSP fragment by replacing the HTML form with a JSP include directive. The modified
version of login.jsp is shown next.
<%@ page language="java" contentType="text/html; charset=UTF-8"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Search WWH ::

Custom Search