Trash appears in JSP page upon declaring error page



<%
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
.



Relevant Pages

  • Re: question on: HTA and format to include external script file
    ... - not sure what you mean by xml-ize 'ing HTML tags? ... As I understand it, XHTML adds ... "Frankly I don't see why people find a need to XML-ize ...
    (microsoft.public.scripting.vbscript)
  • RE: send record via HTML EMail
    ... "Daniel Pineault" wrote: ... Check out the following site for more info on HTML tags. ... Dim objMail As Outlook.MailItem ...
    (microsoft.public.access.modulesdaovba)
  • Re: Youve gotta love vb6
    ... Writing proper HTML is as easy as adding Option Explicit ... ALL HTML tags get set in lowercase. ... employ hacks to get IE to render it properly. ...
    (microsoft.public.vb.general.discussion)
  • Re: printing email and webpages
    ... "PA Bear" wrote: ... But the body of the note contains HTML tags. ... Thought it might be the print driver, so we installed a totally different ...
    (microsoft.public.windowsxp.general)
  • Re: [PHP] Coding for email response forms
    ... I strip out HTML tags ... For processing once it reaches the server, ... different PHP configurations. ... your HTML resides, or place it in it's own file (for example: ...
    (php.general)