Sure.  Set up a servlet context in the WEB-INF/web.xml
file.  Then, setup an alias (servlet mapping) to the alias
url you want to use. 

Example:
Servlet Context
<servlet>
<servlet-name>myServletAlias</servlet-name>
<servlet-class>myServlet</servlet-class>
</servlet>

Servlet Mapping
<servlet-mapping>
<servlet-name>myServletAlias</servlet-name>
<url-pattern>/bin/ServletName</url-pattern>
</servlet-mapping>

This example will run 'myServlet' whenever the url
http://www.domainname.com/bin/ServletName is requested.

You can also append .html or whatever to the url-patterns
to get friendly urls like:
http://www.domainname.com/users/login.html

If you're using packages, remember to include the package
name with the <servlet-class>, e.g., Users.myServlet

-Richard


On Sat, 19 May 2001, you wrote:
> Is it possible to execute a servlet off of anything that does not start
> with
> /servlet?
> 
> I want to start servlets off of:
> http://www.domainname.com/bin/ServletName
> 
> Thanks for any help
> Tim Arnold
-- 
Richard Draucker,  [EMAIL PROTECTED]
Protected-Data.Com  www.protected-data.com
Remote data support for web developers.








Reply via email to