I 've just installed Tomcat3.1 +Apache3.1.14
on Solaris2.5.1(X86).
I could see http://localhost/Examples and Survlets
Examples are working very well but JSP Examples are not working at
all.
And there is one thing I feel strange
is,
when I execute an JSP example and
then Tomcat tries to generate a java file in $TOMCAT-HOME/work directory
and
the jave file is being increased and it makes
system full.(The jave file was almost 500 MB...)
So, I had to shutdown the tomcat and remove
the jave file.(The other JSP files are same...)
For examples,
This is the JSP file that I want to
execute.
<%@page import="java.util.Date"%>
<html> <body> The current time is <%= new Date().toString() %> </body> </html> This is the JAVA that tomcat made
import javax.servlet.*;
import javax.servlet.http.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; import java.io.PrintWriter; import java.io.IOException; import java.io.FileInputStream; import java.io.ObjectInputStream; import java.util.Vector; import org.apache.jasper.runtime.*; import java.beans.*; import org.apache.jasper.JasperException; import java.util.Date; public class _0002fsimpleJSP_0002ejspsimpleJSP_jsp_0 extends HttpJspBase { static { } public _0002fsimpleJSP_0002ejspsimpleJSP_jsp_0( ) { } private static boolean
_jspx_inited = false;
public final void
_jspx_init() throws JasperException {
} public void
_jspService(HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; String _value = null; try {
if (_jspx_inited == false)
{
_jspx_init(); _jspx_inited = true; } _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=8859_1"); pageContext = _jspxFactory.getPageContext(this, request, response, "", true, 8192, true);
application =
pageContext.getServletContext();
config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); // HTML // begin [file="/home/jakarta-tomcat/webapps/JSPExamples/simpleJSP.jsp";from=(0,33);to=(3,20)] out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is ");
out.write("\r\n<html>\r\n<body>\r\nThe current time is
");
out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is ");
out.write("\r\n<html>\r\n<body>\r\nThe current time is
");
out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is ");
out.write("\r\n<html>\r\n<body>\r\nThe current time is
"); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is ");
out.write("\r\n<html>\r\n<body>\r\nThe current time is
"); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); out.write("\r\n<html>\r\n<body>\r\nThe current time is "); ...................................... |