Trash appears in JSP page upon declaring error page
- From: "phillip.s.powell@xxxxxxxxx" <phillip.s.powell@xxxxxxxxx>
- Date: Mon, 28 Jul 2008 06:56:22 -0700 (PDT)
<%
String errorURL = "https://" + request.getServerName() + "/common/
error/general_error.jsp";
%>
<%@ page errorPage = "<%= errorURL %>" %>
<html>
<head>
<title>Blah</title>
</title>
</head>
<body>
Foo
</body>
</html>
The following URL, say, we call it "foo.jsp", once displayed, works
fine, except that this is your output:
%>
Foo
And the "%>" is found before the HTML tags are displayed, somehow
embedding this into the header. When I take out the <%@ page %> tag,
the "%>" disappears. I am required to reference the error page URL
within pages such as "foo.jsp", so how do I remove the extraneous
"trash" from the header, i.e. the "%>" from displaying?
Thanks
Phil
.
- Follow-Ups:
- Prev by Date: Re: [General]acces of members of subclass
- Next by Date: Re: [General]acces of members of subclass
- Previous by thread: net.sf.jasperreports.engine.fill.JRExpressionEvalException
- Next by thread: Re: Trash appears in JSP page upon declaring error page
- Index(es):
Relevant Pages
|