W
Winston Kotzan
Hello,
I have a function within an include page (common_func.jsp) like this:
<%!
public void DisplayError(String ErrMsg) {
%>
<html>
<head><title>Application Error</title></head>
<body>
<h1>Application Error:</h1>
<h3> out.print(ErrMsg); </h3>
</body>
</html>
<%!
out.close();
}
%>
This function is common on all my pages, so I call it by having an include
like this at the top of each page:
<%@ include page="common_func.jsp" %>
The problem is that when that function is called, the "out" variable is not
recognized. I think the problem may be with scope. How can I access the
Java "out" object from within my function?
Thanks.
I have a function within an include page (common_func.jsp) like this:
<%!
public void DisplayError(String ErrMsg) {
%>
<html>
<head><title>Application Error</title></head>
<body>
<h1>Application Error:</h1>
<h3> out.print(ErrMsg); </h3>
</body>
</html>
<%!
out.close();
}
%>
This function is common on all my pages, so I call it by having an include
like this at the top of each page:
<%@ include page="common_func.jsp" %>
The problem is that when that function is called, the "out" variable is not
recognized. I think the problem may be with scope. How can I access the
Java "out" object from within my function?
Thanks.