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:[EMAIL PROTECTED]] > 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:[EMAIL PROTECTED]] > > Sent: 25. febr�ar 2002 18:37 > > To: [EMAIL PROTECTED] > > 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 > [EMAIL PROTECTED] > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
