Under certain circumstances Glassfish generates wrong Java-JSP code which then fails to compile. It is best to look at my attached example code to understand the problem:
- create a web app
- add tld file, classes and JSPs from attached file
- run ok.jsp (works as expected)
- run bug.jsp
=> Compilation fails because generated Java code is wrong
Now compare ok.jsp to bug.jsp. The only difference is, that the ok.jsp does not use an include. In this case, the generated code is different and works.
Please compare the generated Java code for both cases (see folder generated_code inside attachment).
Check line 90 in bug_jsp.java:
java.lang.Float_jspx_temp0 = myVar;
As you can see, there is a space missing! The line should read:
java.lang.Float _jspx_temp0 = myVar;
Cheers, Ingo =;->