You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2002/02/25 19:19:57 UTC
RE: Ho can I make my URL shorter?
/adminContact/* indicates that the servlet should only respond if
the trailing slash is present. What you probably want is /adminConcact
(respond to one specific URL).
Randy
> -----Original Message-----
> From: C Cayetano [mailto:apache@ccayetano.com]
> Sent: Monday, February 25, 2002 2:01 PM
> To: Tomcat Users List
> Subject: RE: Ho can I make my URL shorter?
>
>
> 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:
> <ma...@jakarta.apache.org>
> > For additional commands:
> <ma...@jakarta.apache.org>
> > Troubles with the list:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>