Recent student I can in the new Java EE encountered the following problem:
& lt; % @ page language="Java" import="Java. Util. *" pageEncoding="utf-8" % & gt;
<%
String path=request. GetContextPath ();
String=basePath request. GetScheme () + "://" + request. GetServerName () + ":" + request. GetServerPort () + + "/" path;
String errorMessage=(String) request. GetAttribute (" errorMessage ");
% & gt;
<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;
<body>
Account: & lt;/label>
Password: & lt;/label>
The user types: & lt;/label>
<%
If (errorMessage!=null) {% & gt;
<%}
% & gt;
<%
If (errorMessage!=null) {% & gt;
<%}
% & gt;