tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Adding annotations to JspC
Date Fri, 17 Dec 2010 08:49:33 GMT
2010/12/16 Christopher Schultz <chris@christopherschultz.net>:
> All,
>
> I'm looking at writing a patch for bug 50234 ("JspC use servlet 3.0
> features": https://issues.apache.org/bugzilla/show_bug.cgi?id=50234) and
> I'm thinking that the annotations should actually have nothing to do
> with the precompiler, but the compiler itself.
>
> Can anyone think of a reason not to simply update
> jasper.compiler.Generator to add the @WebServlet annotations? I believe
> everything else needs to be handled by JspC.
>

Note, that you still have to preserve compatibility for the webapps
that adhere to Servlet 2.5 and earlier versions of specification.

Using JspC may be limited to Servlet 3.0+ ones (if it is worth it),
but just deploying earlier versions of the webapps on Tomcat should
still work.


Do you really need @WebServlet here? Are the jsp servlets discovered
though annotations, or do you list them in web-fragment.xml ?


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message