Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
String blah = null;
%>
<%@ include file="header.inc" %>
<%
if (blah != null) {
out.println(blah);
} else {
out.println("Hello");
}
%>
<%
String blah = session.getAttribute("blah");
if (blah != null) {
%>
<%= blah %>
<%
} else {
%>
Doc ID Tool
<%
}
%>
<%
if (blah != null) {
out.println(blah);
} else {
out.println("Hello");
}
%>
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 71 in the jsp file: /includes/common/header.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\sqmdocuments\org\apache\jsp\includes\common\header_jsp.java:129: cannot find symbol
symbol : variable pageHeader
location: class org.apache.jsp.includes.common.header_jsp
if (pageHeader != null) {
^
An error occurred at line: 71 in the jsp file: /includes/common/header.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\sqmdocuments\org\apache\jsp\includes\common\header_jsp.java:130: cannot find symbol
symbol : variable pageHeader
location: class org.apache.jsp.includes.common.header_jsp
out.print(pageHeader);
^
2 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
<%
String pageHeader = null;
%>
<%@ include file="header.inc" %>
<%
if (pageHeader == null) {
out.println("no header present");
} else {
out.println(pageHeader);
}
%>
<%
pageHeader = "header set in include file";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<%
String pageHeader = "Hello World!";
%>
<%@ include file="include.inc"%>
</body>
</html>
<%
if((null != pageHeader) || (!"".equals(pageHeader))){
out.println(pageHeader);
}else{
out.println("No Header");
}
%>