Hi Gunnar:
Thanks for your help,
but then I found another problem: if I want the servlet to handle the request 
with the path "/scap/*",I try to modify the alias to "/xcap/", it throws 
"java.lang.IllegalArgumentException: Invalid alias '/xcap/' ",how should I 
resolve this problem?

Thanks so many.


2009-12-09 



fox 



发件人: Gunnar Wagenknecht 
发送时间: 2009-12-08  20:31:53 
收件人: equinox-dev 
抄送: 
主题: [equinox-dev] Re: How can I register a servlet to receive andhandle the 
path like "/*"? 
 
Am 08.12.2009 09:08, schrieb fox:
> When I convert a httpservlet to a bundle,I found that the first param of
>  Httpservice.registerServlet method does not support the path define
> like "/*",but I want to achieve this functionality ,what should I do?
Just '/' instead of '/*'. The OSGi HttpService applies a prefix matching.
-Gunnar
-- 
Gunnar Wagenknecht
[email protected]
http://wagenknecht.org/
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to