Can anyone help me: I have Tomcat installed: on http://ServerName:8080/MyPackagename
in our LAN.
MyPackageName contains the HTML files and with in it there's classes subdirectory that contains amossubfolder my Servlet classes.

I have a HTML form:
<form action="/servlet/MyPackageName.amos.LoginServlet2">

When i submit the form, it says:"Error 401: the requested resorce:/servlet/MyPackageName.amos.LoginServlet2 is not available "

The directory structure is like this:

MyPackageName---------->WEB-INF--------->classees---------->amos

This post contains some useful information pertaining to your issue.

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.