I have a problem with my first servlet in tomcat.
It works fine when i have no "package declaration" in my code.
But when i write this at the top of my code, it doesn't work anymore:
package sk.tomcatuser.svlt;
The class that contains the servlet code is called "Rot31"
public class Rot13 extends HttpServlet { ....
I've added this in the web.xml, but appearently it seems not to work anymore.
<servlet>
<servlet-name>Rot13</servlet-name>
<servlet-class>sk.tomcatuser31.svlt.Rot13</servlet-class>
</servlet>
and
<servlet-mapping>
<servlet-name>Rot13</servlet-name>
<url-pattern>/servlet/Rot13</url-pattern>
</servlet-mapping>
when i leave out the package-things, it works :-(
what's wrong and where ?
It works fine when i have no "package declaration" in my code.
But when i write this at the top of my code, it doesn't work anymore:
package sk.tomcatuser.svlt;
The class that contains the servlet code is called "Rot31"
public class Rot13 extends HttpServlet { ....
I've added this in the web.xml, but appearently it seems not to work anymore.
<servlet>
<servlet-name>Rot13</servlet-name>
<servlet-class>sk.tomcatuser31.svlt.Rot13</servlet-class>
</servlet>
and
<servlet-mapping>
<servlet-name>Rot13</servlet-name>
<url-pattern>/servlet/Rot13</url-pattern>
</servlet-mapping>
when i leave out the package-things, it works :-(
what's wrong and where ?