I think if you read the Spec you can only use 2 sorts of patterns: *.xxx xxx/x/xx*
I.e prefix or postfix. These are not regular expressions. I might be wrong - look at the servlet spec. Luke -----Original Message----- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 18:48 To: 'Tomcat Users List' Subject: Mapping a servlet to respond to /?????????? Hi I want you map a servlet to some URL that contains an ID which is 10 digits. If nothing is specified then I want index.jsp to load. eg: <servlet-mapping> <servlet-name>myservlet</servlet-name> <url-pattern>/??????????</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> This doesn't work at all but if I type http://server/mms/ the index page loads but if I type http://server/mms/1234567890 then my servlet DOES NOT execute. Question is, can I get the servlet to load if there are exactly 10 characters? Thanks in advance Donie -----Original Message----- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: February 20, 2002 17:52 To: 'Tomcat Users List' Subject: RE: URGENT!!!! encodeURL() java.net.URLEncoder/java.net.URLDecoder > -----Original Message----- > From: Emerson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 20, 2002 1:44 PM > To: Tomcat Users List > Subject: URGENT!!!! encodeURL() > > > Please, these is really urgent... > > How do I encode a URL without HttpServletResponse at hand??? > I need to read a URL from a service, but i have to encode it, changing > spaces to %20, how do i do it??? have anyone done that???? > > Please, I really have to end this by today.... > > > Emerson Cargnin > TRE-SC > Setor de Desenvolvimento > Tel: (48) 251-3700 - Ramal 3134 > > -- > 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]> -- 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]>
