dev@glassfish.java.net

Re: Fwd: usage of _at_WebServlet

From: Sreekanth <sreekanth.manga_at_gmail.com>
Date: Tue, 5 Oct 2010 05:38:43 +0530

Thanks.I got it clarified from JBoss guys.They told me it was one of their
friendly features .

On Mon, Oct 4, 2010 at 10:17 PM, Shing Wai Chan
<shing.wai.chan_at_oracle.com>wrote:

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


-- 
Thanks,
Sreekanth