What is strange is that the very same applications that did not work in
Slackware 10.1 using tomcat  4.1 do work in windowsxp using tomcat 5.5 .
I was trying to run examples from a book on JSP "The complete Reference"
and I placed the sample code in slackware under the webapps directory,
something like this: webapps/jspcr/chap05/examples/somepage.jsp.
Tomca4.1 does not find the jsp but will find other applications I have
under webapps.  This same directory structure was used with Tomcat5.5 in
windows and I have no problem with it: the page somepage.jsp, for
example, shows up.

I am not sure at all what the problem is.  And I don't know if this
helps me, but is there a way to log the errors so that I can at least
try to figure out what's wrong ?

-----Original Message-----
From: Zack Grafton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 14, 2007 6:12 PM
To: Tomcat Users List
Subject: Re: Jsp gest 404 error

Hello,

Everything in the WEB-INF directory isn't directly accessible; meaning,
if you type in something like
http://localhost:8080/myapp/WEB-INF/index.jsp, you will get a 404 error.
Where you should place them is entirely dependent on you.  You can write
controller servlets and use a RequestDispatcher to forward to a jsp in
your WEB-INF directory.  If you are just using jsp pages, don't place
them in the WEB-INF directory.

Zack


Coelho.Joao wrote:
> I am using tomcat 4.1.   Where must the jsp page be in relation to the
> WEB-INF directory ?
> I am running into some dificulties with some pages.  Some pages show 
> up and others give me an error 404.
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to