Java Reference
In-Depth Information
At this point, NetBeans generates our page with some trivial content meant to be
replaced with something else.
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"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
 
Search WWH ::




Custom Search