Java Reference
In-Depth Information
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
</head>
<body>
<p>Please enter your username and password to access the application</
p>
<%@ include file="WEB-INF/jspf/loginform.jspf" %>
</body>
</html>
The include directive inserts the contents of the JSP fragment into our page. The
value of its file attribute is a relative path to the file we want to include. When the
page is rendered in the browser, the contents of the included file are placed where
we placed our include directive.
Ctrl+Space code completion works between the double quotes for the
file attribute.
After making this change in loginerror.jsp , we have successfully extracted the
common markup between both pages into a single JSP fragment. Our application
will behave exactly as it did before, but it is now more maintainable since changes to
the HTML form have to be done only once.
Monitoring Web Applications with
NetBeans HTTP Monitor
When deploying any application by right-clicking on the project and selecting Run ,
the HTTP monitor pops up at the bottom of the NetBeans main window.
 
Search WWH ::




Custom Search