https://bz.apache.org/bugzilla/show_bug.cgi?id=58554
Bug ID: 58554 Summary: Cannot output html from jsp files inside of lambdas Product: Tomcat 8 Version: 8.0.26 Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P2 Component: Jasper Assignee: dev@tomcat.apache.org Reporter: joseph.len...@askattest.com If you use a within a JSP file, and you output html within that lambda, then you receive a compile error. This is because the HTML is outputted using a variable 'out' which is not final. So the 'out' variable in the generated JSP code needs to be changed to be final. i.e. <% // stuff like this fails to compile blog.eachPost( (title, content) -> { %> <h1><%= title %></h1> <p><%= content %></p> %> }); %> It would be useful if lambdas could work in JSP files. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org