I was able to refer to a book I have and so I dropped the .class extensions altogether. I get an error that requested resource is not available still. Any suggestions on this? My web.xml file has this entry:
<servlet> <servlet-name>JustALittleTest</servlet-name> <servlet-class>JustAlittleTest</servlet-class> </servlet> <servlet-mapping> <servlet-name>JustALittleTest</servlet-name> <url-pattern>/JustALittleTest</url-pattern> </servlet-mapping> And my action attribute="JustALittleTest". Brian -----Original Message----- From: McRaven, Brian Sent: Tuesday, July 11, 2006 1:14 PM To: users@tomcat.apache.org Subject: Accessing a servlet Well I'm ticking these newbie questions off. I have a simple servlet that I want my form to access. I compiled the file fine and it is called JustALittleTest.class. I placed this file in the ROOT/WEB-INF/classes folder. In my JSP I have a form with some submit buttons. The action element of the form is set to ="JustALittleTest". I changed my web.xml file so it now has the following entries: <servlet> <servlet-name>JustALittleTest</servlet-name> <servlet-class>JustAlittleTest.class</servlet-class> </servlet> <servlet-mapping> <servlet-name>JustALittleTest</servlet-name> <url-pattern>/JustALittleTest.class</url-pattern> </servlet-mapping> I've tried a few changes to the above entries but I haven't gotten it right yet. Should the servlet-class value have a .class extension? Is my url pattern accessing the correct folder? Brian --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]