OK, there is a little bit of configuration in the TLD

Hah! You didn’t think the solution was only in code, did ya? Of course, there is an element of configuration required. Hey, it’s the JSP spec we’re talking about here. Fortunately, the change is painless. The element you need to include is named <dynamic-attributes>:

image with no caption

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.