Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
jsp:include page= "/servlet/.. ' does not work

jsp:include page= "/servlet/.. ' does not work

2004-01-22       - By Tom Joseph

 Back
Hello,

I am having trouble getting the following JSP working with tomcat 4.1.

<jsp:include page="/servlet/MyServlet" flush="true"/>

I do not see any errors at the server. I do not see the servlet getting
loaded/initialized either. Browser shows blank screen. I am using JBOSS
3.2.3, struts 1.1 on Win2K. The same works just fine at tomcat 4.0 with
jboss 2.4.

I am attaching the generated code below. It does not explicitly call the
init() unlike the older version. Any idea why it is happening ?. Please
let me know if anybody has any thoughts on what is going on.

I greatly appreciate all your help.

Thanks,
Tom//.

=========== CODE BELOW =======================

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;

public class logonAlpha_jsp extends HttpJspBase {


 private static java.util.Vector Source code of java.util.Vector _jspx_includes;

 public java.util.List Source code of java.util.List getIncludes() {
   return _jspx_includes;
 }

 public void _jspService(HttpServletRequest request,
HttpServletResponse response)
       throws java.io.IOException Source code of java.io.IOException, ServletException {

   JspFactory _jspxFactory = null;
   javax.servlet.jsp.PageContext Source code of javax.servlet.jsp.PageContext pageContext = null;
   HttpSession session = null;
   ServletContext application = null;
   ServletConfig config = null;
   JspWriter out = null;
   Object page = this;
   JspWriter _jspx_out = null;


   try {
     _jspxFactory = JspFactory.getDefaultFactory();
     response.setContentType("text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1");
     pageContext = _jspxFactory.getPageContext(this, request, response,
                       null, true, 8192, true);
     application = pageContext.getServletContext();
     config = pageContext.getServletConfig();
     session = pageContext.getSession();
     out = pageContext.getOut();
     _jspx_out = out;

     JspRuntimeLibrary.include(request, response, "/servlet/MyServlet",
out, true);
     out.write("\r\n");
   } catch (Throwable t) {
     out = _jspx_out;
     if (out != null && out.getBufferSize() != 0)
       out.clearBuffer();
     if (pageContext != null) pageContext.handlePageException(t);
   } finally {
     if (_jspxFactory != null)
_jspxFactory.releasePageContext(pageContext);
   }
 }
}






©2008 junlu.com - Jax Systems, LLC, U.S.A.