AFAIK - you can only specify a wild card at the end of the URL. A * in the
middle is treated as a literal, and not a wild card.

See -
http://www.velocityreviews.com/forums/t133725-using-wildcard-character-in-web-xml-with-tomcat-5-a.html


--Sri


2009/11/22 smiletolead <[email protected]>

> I want know why it does not work without using Guice. Because
> specifying a URL pattern with wild card is working for a normal
> servlet but it is not working for a RPC servlet
>
> On Nov 21, 7:07 am, Fabio <[email protected]> wrote:
> > Maybe GuiceRemoteServiceServlet fits your needs. All the services are
> > mapped to the same url, and GuiceRemoteServiceServlet uses Guice
> > dependency injection to choose one appropriate service implementation,
> > that serves the service interface on which the request was made.
> >
> > hope it helps
> >
> > On 20 nov, 11:28, Kamal Chandana Mettananda <[email protected]> wrote:
> >
> >
> >
> > > Hi,
> >
> > > When you specify the servlet url-pattern; you must specify the path you
> > > expects without wild cards in the middle of the url-pattern. (wild card
> > > character can be a suffix in a url pattern).
> >
> > > Cheers,
> > > Kamalhttp://lkamal.blogspot.com
> >
> > > On Fri, Nov 20, 2009 at 6:50 PM, smiletolead <[email protected]
> >wrote:
> >
> > > > Hi all,
> > > >   I have a project with 2 modules. The modules are sharing a RPC
> > > > servlet. The idea is to use single RPC servlet for multiple Service
> > > > interfaces. The interfaces reside in different modules. I am facing
> > > > one problem when use * in the URL pattern. The servlet is not getting
> > > > invoked when I use the URL patter as "/*/moduleA". It is expecting me
> > > > to specify the exact URL.  Can anyone tell me what the problem is?
> >
> > > > Regards,
> >
> > > > --
> >
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
> [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=.


Reply via email to