Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 13130 invoked from network); 6 Jul 2000 01:44:31 -0000 Received: from unknown (HELO mail.stt.com.hk) (202.70.130.9) by locus.apache.org with SMTP; 6 Jul 2000 01:44:31 -0000 Received: from stt.com.hk (ipvpn009174.netvigator.com [203.198.51.174]) by mail.stt.com.hk (Sun Internet Mail Server sims.4.0.1999.06.13.00.20) with SMTP id <0FX900K5H654WD@mail.stt.com.hk> for tomcat-dev@jakarta.apache.org; Thu, 6 Jul 2000 09:43:52 +0800 (HKT) Date: Thu, 06 Jul 2000 09:45:54 +0800 From: Arion Yu Subject: Re: problems compile .jsp with a MIME-version: 1.0 X-Mailer: Mozilla 4.73 [en] (Win98; U) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <4.2.2.20000705122609.00ada8e0@facstaff.wisc.edu> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi! Could you check where is your "response.jsp"? Arion David Parker wrote: > I'm attempting to use the set and get properties from a bean, following the > tutorial from sun. > http://java.sun.com/products/jsp/html/jspbasics.fm2.html > > This is my directory structure. > E:\Express\jsp\hellouser.jsp > E:\Express\WEB-INF\jsp\beans\hello\NameHandler.java > > I have the following context in the tomcat.conf > > ApJservMount /express /root > > AllowOverride None > deny from all > > > > SetHandler jserv-servlet > > > ____________________________________________________________________________ > ___________________ > > There seems to be a problem with the directory structure because the > servlet engine is not able to find include files. > > Error: 500 > Location: /express/jsp/hellouser.jsp > Internal Servlet Error: > org.apache.jasper.JasperException: Bad file argument to include > at > org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve > ntListener.java, Compiled Code) > at > org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList > ener.java:116) > at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, > Compiled Code) > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1034) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java, > Compiled Code) > at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) > at > org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe > rvlet.java:149) > at > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja > va:161) > at > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) > at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, > Compiled Code) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, > Compiled Code) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) > at > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection > (Ajp12ConnectionHandler.java, Compiled Code) > at > org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, > Compiled Code) > at java.lang.Thread.run(Unknown Source) > > ____________________________________________________________________________ > ___________________ > > E:\Express\jsp\hellouser.jsp > > <%@ page import="hello.NameHandler" %> > > > > > > Hello, User > > > <%@ include file="dukebanner.html" %> > > > > > > > > > > >
  >

My name is Duke. What's yours?

>
> >
> >
> > >
> > <% > if ( request.getParameter("username") != null ) { > %> > > <%@ include file="response.jsp" %> > > <% > } > %> > > > > ____________________________________________________________________________ > ___________ > E:\Express\WEB-INF\jsp\beans\hello\NameHandler.java > package hello; > > public class NameHandler { > > private String username; > > public NameHandler() { > username = null; > } > > public void setUsername( String name ) { > username = name; > } > > public String getUsername() { > return username; > } > } -- [This email and any files transmitted with it are confidential and may contain information that is legally privileged. They are intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender by email immediately; you should not copy or use it for any purpose, nor disclose its contents to any other person. Thank you.]