John --
I'm not entirely sure what you're doing, but I'm guessing source.jsp is supposed to return plain text of the jsp specified as the argument. Assuming you can correctly access:
http://localhost:8080/examples/jsp/source.jsp
without problems, then your setup is ok. As for your source viewing problem, since you're getting a jasper exception mentioning numguess.jsp, it looks like Tomcat is trying to serve up that jsp instead of source.jsp as intended.
Try changing the url to look something like:
http://localhost:8080/examples/jsp/source.jsp?jspsrc=jsp.num.numguess
In source.jsp, get the value of parameter jspsrc and parse it to reconstruct the actual path of the argument jsp file. This may not be necessary, but I don't in general play around with potentially ambiguous characters in parameters. I'm assuming you already know how to locate that file and get the source for it, so I won't go into that.
Hope that helps...
justin
At 08:52 AM 2/3/2003, you wrote:
Can anyone help me rectify an invalid JSP file error? I am getting an invalid JSP error when trying to view the JSP example source code through my browser. After starting Tomcat, I am navigating from the Tomcat welcome/index.jsp page through to "view source" of any of the jsp examples( e.g. http://localhost:8080/examples/jsp/source.jsp?/jsp/num/numguess.jsp).I have installed Tomcat 4.1.18 binaries on win2k. I have JAVA_HOME set to my jdk 1.3.1_06 directory, and have NOT set any other environment variables. The error comes back on a web page titled "HTTP Status 500 - " and the exeption contents are: org.apache.jasper.JasperException: Invalid JSP file /jsp/num/numguess.jsp at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:248) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247)
____________________________________ Justin Ruthenbeck Software Engineer, NextEngine Inc. [EMAIL PROTECTED] Confidential - See http://www.nextengine.com/confidentiality.php ____________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]