here is the file
web.xml is:
i can hit the jsp page using:
but i cannot test my servlet via:
everything compiled fine... the java code is in the WEB-INF folder, same level as index.jsp...
thanks in advance
Code:
<Server port="8005" shutdown="SHUTDOWN">
<GlobalNamingResources>
<!-- Used by Manager webapp -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" />
<!-- This is here for compatibility only, not required -->
<Connector port="8009" protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="localhost" appBase="webapps" />
<Host name="skunkjava.loc" debug="0" appBase="webapps" unpackWARs="true">
<Alias>[URL unfurl="true"]www.skunkjava.loc</Alias>[/URL]
<Context path="" docBase="/usr/lib/apache-tomcat/webapps/myApp" debug="0" reloadable="true"/>
</Host>
</Engine>
</Service>
</Server>
web.xml is:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"[URL unfurl="true"]http://java.sun.com/dtd/web-app_2_3.dtd">[/URL]
<web-app>
<servlet>
<servlet-name>Testing</servlet-name>
<servlet-class>TestingServlet</servlet-class>
</servlet>
</web-app>
i can hit the jsp page using:
but i cannot test my servlet via:
everything compiled fine... the java code is in the WEB-INF folder, same level as index.jsp...
thanks in advance