annotations in JSP 2.1 specification
I have read the JSP 2.1, Servlet 2.5 and JavaEE 5 specifications. However nothing is explicitely specified about annotations in JSP and tag files. The only assumption which can be made is that as JSP files extend javax.servlet.Servlet so they could be annotated. Looking at table J2EE.5-1 “Components classes supporting injection” only tag handlers and tag library event listeners are specified. As event listeners are both mentioned in JSP and Servlet rows of the table, why JSP pages are not specified in the JSP row? Should it be able to annotate JSP page?
The other relevant question is if the event listeners described in the web.xml support all 7 annotations described in Servlet 2.5 specification why the other event listeners described in TLD should support only @Resource, @EJB, @WebServicesRef?
And finally why JSP 2.1 specification limits usage of @InjectionComplete annotation? Why tags, event listeners (and JSP pages) cannot define a method and annotate it with @InjectionComplete?