tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Ho can I make my URL shorter?
Date Mon, 25 Feb 2002 18:35:56 GMT
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>


Mime
View raw message