dev@glassfish.java.net

Re: Fwd: usage of _at_WebServlet

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Mon, 04 Oct 2010 09:47:05 -0700

  We need a leading "/" in this case.
See examples in Servlet 3.0 specification.
Shing Wai Chan


>
> -------- Original Message --------
> Subject: usage of @WebServlet
> Date: Fri, 01 Oct 2010 19:44:05 +0530
> From: Sreekanth <Sreekanth.Manga_at_Sun.COM>
> Reply-To: dev_at_glassfish.dev.java.net
> To: dev_at_glassfish.dev.java.net
>
>
>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail:dev-help_at_glassfish.dev.java.net
>