dev@glassfish.java.net

usage of _at_WebServlet

From: Sreekanth <Sreekanth.Manga_at_Sun.COM>
Date: Fri, 01 Oct 2010 19:44:05 +0530

Hi,

Are these 2 usages of @WebServlet correct ?

@WebServlet("*")
@WebServlet("emfconsumer") // Is it ok not to have a leading '/' ?

I was told these 2 work fine with tomcat and jboss web.Does spec allows
this?If yes why does glassfish doesn't allow it?I couldn't understand
clearly.

Thanks
Sreekanth