Bug 50234 - JspC use servlet 3.0 features
Summary: JspC use servlet 3.0 features
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Jasper (show other bugs)
Version: trunk
Hardware: All All
: P2 enhancement with 6 votes (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
: 53424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-08 07:12 UTC by Tim Funk
Modified: 2018-05-16 10:09 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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