tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Grafton <zachary.graf...@gmail.com>
Subject Re: Jsp gest 404 error
Date Thu, 15 Feb 2007 16:26:12 GMT
Hello Again,

Every web application requires a WEB-INF/web.xml file.  If that file 
isn't there, Tomcat won't treat the directory you created as a web 
application.  As long as you have  WEB-INF/web.xml file, you can place 
the JSP files in subdirectories and Tomcat will find them.

Hope that helps,

Zack

Coelho.Joao wrote:
> 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:zachary.grafton@gmail.com] 
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   


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


Mime
View raw message