Anthony Diodato wrote: > OK, here is where Im at. > > I have set up under the /cocoon context I have > /WEB-INF > /WEB-INF/classes > > and inside there I have my CreateSession.class > > My form at /index.html is pointing to /cocoon/CreateSession > > in my web.xml file (/cocoon/WEB-INF/web.xml) > I need to know how to configure this. > > <web-app> > ... > <servlet> > <servlet-name>CreateSession</servlet-name> > <servlet-class>com.mycomp.MyServlet</servlet> ????? What goes here. > Im confused about this one > </servlet>
The <servlet-class> element should contain the fully qualified class name for the servlet class. If your servlet uses the default package (i.e. no package statement in your .java file), it's simply "<servlet-class>CreateSession</servlet-name>". If it's in a package, you need to include the package name as well as in my original example. The servlet name and the servlet class name can be the same, even though I typically use this naming convention: * Name: foo * Class Name: FooServlet But that's just a matter of preference. > <servlet-mapping> > <servlet-name>CreateSession</servlet-name> > <url-pattern>/CreateSession/*</servlet> > </servlet-mapping> > ... > </web-app> > > This is where Im stuck. The rest looks fine at a quick glance. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pages http://TheJSPBook.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
