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]>

Reply via email to