tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C Cayetano" <apa...@ccayetano.com>
Subject RE: Ho can I make my URL shorter?
Date Mon, 25 Feb 2002 19:00:30 GMT
I've got the same problem, but in trying the recommentation below I get a
404

OLD method:

http://servername/servlet/admin.contactInfo


NEW method:

Trying to get: http://servername/adminContact


In file \webapps\ROOT\WEB-INF\web.xml :

<web-app>
<servlet>
    <servlet-name>contactAdmin</servlet-name>
    <servlet-class>admin.contactInfo</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>contactAdmin</servlet-name>
  <url-pattern>/adminContact/*</url-pattern>
</servlet-mapping>
</web-app>

Restart Tomcat, so now I tried, :  http://servername/adminContact and got a
404. Am I doing something wrong?

Thanks



> -----Original Message-----
> From: Reynir Hübner [mailto:reynir@hugsmidjan.is]
> Sent: Monday, February 25, 2002 10:36 AM
> To: Tomcat Users List
> Subject: RE: Ho can I make my URL shorter?
>
>
> reed inline comments :
>
>
> > -----Original Message-----
> > From: Rudi Doku [mailto:rudidoku@hotmail.com]
> > Sent: 25. febrúar 2002 18:37
> > To: tomcat-user@jakarta.apache.org
> > Subject: Ho can I make my URL shorter?
> >
> >
> > Hello,
> >
>  HEEEEEEEELLOOO!!
>
> > I have a URL which is too long. I would appreciate it of
> > someone could help
> > me with the following queries:
> >
> > 1. Is it possible to confugure the application so I can
> > remove the port
> > "8080" from the URL?
> >
> YEP check server.xml (in tomcat/conf/) and change the port of your
> Connector element.
>
> mine looks like this :
>
>  <Connector className="org.apache.catalina.connector.http.HttpConnector"
>                port="80" minProcessors="5" maxProcessors="150"
>                enableLookups="true" redirectPort="8443"
>                acceptCount="100" debug="0" connectionTimeout="60000"/>
> ok ?
>
> > 2. Can I declare an alias for
> > com.docutech.viewer.web.LoginAction so I don't
> > have to display the entire package? The action for my form is
> > "servlet/com.docutech.viewer.web.LoginAction"
>
> yes, in web.xml (for your webapplication) in webappname/WEB-INF/web.xml
> you can define servlet mappings.
>
> <servlet>
>     <servlet-name>LoginAction</servlet-name>
>     <servlet-class>com.docutech.viewer.web.LoginAction</servlet-class>
> </servlet>
> <servlet-mapping>
>   <servlet-name>LoginAction</servlet-name>
>   <url-pattern>/login/*</url-pattern>
> </servlet-mapping>
>
>
> hope it helps
> -reynir@hugsmidjan.is
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message