i want to compile .jsp file. i have downloaded tomcat 6.0.
and set environmental variables e.g.
set PATH="C:\Program Files\Java\jdk1.6.0_10\bin";%PATH%
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10
set CLASSPATH=.;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\jsp-api.jar;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\el-api.jar;C:\Servlets+JSP;..;..\..
i hava searched pages related to configuring web.xml, context.xml etc
but i am still unable to load and locate .jsp file on my local server.
for eg.
httt//:localhost:8085//webapp//jsp//index.jsp
shows http 404 ERROR
any help will be appreciated
thanks

Did you put that at the url: httt//:localhost:8085//webapp//jsp//index.jsp ?
Because it needs to be:
httt//:localhost:8085/webapp/jsp/index.jsp
Provided that the index.jsp file is at the right location.

thanks for replying.
actually i was not deploying file in the ROOT directory under C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\
i.e. C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT.
your advise also helped me.
thank you.

i want to know whether it is necessary to follow the listed directory structure.
C:\Temp\
myServletWAR\
META-INF\
WEB-INF\
classes\
HelloServlet.class
web.xml
i have seen many authors relying on the above structure to deploy .war
files.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.