Bug 50234

Summary: JspC use servlet 3.0 features
Product: Tomcat 7 Reporter: Tim Funk <funkman>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement CC: anthonygerrard+apache.org, marc.pompl
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Tim Funk 2010-11-08 07:12:01 UTC
Update JspC to allow new options to
1) Write web-fragment.xml as a valid web-fragment file.
2) Place all the precompiled jsp classes into a jar file
3) Put the web-fragment,xml (from step 1) into META-INF/web-fragment.xml of the jar file created in step 2
Comment 1 Christopher Schultz 2010-11-09 17:34:42 UTC
4) Use annotations (independent from #1-#3 in comment #0)
Comment 2 Christopher Schultz 2011-01-21 12:52:24 UTC
It looks like annotations don't make any sense, here. Brain fart on my part.

On the other hand, it looks like a simple change to a properties file plus a new build-jspc.xml build script should do the trick.

Working on a patch.
Comment 3 Konstantin Kolinko 2012-06-17 07:33:03 UTC
*** Bug 53424 has been marked as a duplicate of this bug. ***
Comment 4 Marc Pompl 2014-04-23 20:05:25 UTC
4) abandon the requirement for web.xml if a web-fragment.xml is present
At the moment (Tomcat 7), a dummy web.xml has to be defined in order to define the version (i.e. for expresions within the JSPs).
Comment 5 Mark Thomas 2018-05-16 10:09:50 UTC
Fixed in:
- trunk for 9.0.9 onwards
- 8.5.x for 8.5.32 onwards
- 7.0.x for 7.0.89 onwards