The problem is that everything outside of the directives is sent to the
browser - your directives are separated by newline characters:
<%@ page import="java.lang.*" %>\n
<%@ page import="java.util.*" %>\n
<%@ page import="java.io.*" %>\n
\n
<html>\n
<body>\n
[etc..]
If you really want to get rid of the blank lines, you'll have to remove the
white space between the directives:
<%@ page import="java.lang.*" %><%@ page import="java.util.*" %><%@ page
import="java.io.*" %>\n
This reduces readability of the code, however, so I don't recommend it. If
you're really upset about it, perhaps:
<%@ page import="java.lang.*" %><%
%><%@ page import="java.util.*" %><%
%><%@ page import="java.io.*" %>
.. but now we're getting silly.
Michael
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeevan Mathew
Sent: Wednesday, August 30, 2000 8:54 AM
To: [EMAIL PROTECTED]
Subject: Blank lines on JSP
Hi all,
I have an issue regarding JSPs.
Most of my JSPs have many directive statements (jsp tags) at the beginning
of the file,
and because which, the contents (html )are displayed after a few blank
lines !
any idea to rectify it ??
I have tried putting some html tags at the top of the jsp file , then added
the directives after them. but still the same result :(
Thankx
Jeevan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets