J
Jan Burse
Dear All,
I made a small experiment recently with JSP
and got the impression that the full power
of the JDK 1.8 is currently not available for
the web.
What I tried was very simple, I included
a closure in a JSP text. But the JSP system
refused to allow the <% %> tags inside the
closure.
My code looked as follows:
<%
do some computation;
do some computation that
needs a continuation (new some base class() {
the computation of the continuation goes here
%>here goes some HTML code of the continuation<%
more computation of the continuation goes here
}
do some other computation
%>
The problem I were facing were:
- Tomcat refused an inner class without <% %>,
in case I was addressing out in the inner class.
It said that out is not final.
- My IDE refused an inner class with <% %>
all together, it marked it as an error.
So it seems that all this fuzz about closures
doesn't carry over to the web. Which makes me
currious about some of the web frameworks from
some of the functional languages camps.
But I might also be totally wrong, i.e. that
I don't have the right tomcat version etc..
and that the web can profit from JDK 1.8. But
I didn't find much through googling so far.
Comments welcome
I made a small experiment recently with JSP
and got the impression that the full power
of the JDK 1.8 is currently not available for
the web.
What I tried was very simple, I included
a closure in a JSP text. But the JSP system
refused to allow the <% %> tags inside the
closure.
My code looked as follows:
<%
do some computation;
do some computation that
needs a continuation (new some base class() {
the computation of the continuation goes here
%>here goes some HTML code of the continuation<%
more computation of the continuation goes here
}
do some other computation
%>
The problem I were facing were:
- Tomcat refused an inner class without <% %>,
in case I was addressing out in the inner class.
It said that out is not final.
- My IDE refused an inner class with <% %>
all together, it marked it as an error.
So it seems that all this fuzz about closures
doesn't carry over to the web. Which makes me
currious about some of the web frameworks from
some of the functional languages camps.
But I might also be totally wrong, i.e. that
I don't have the right tomcat version etc..
and that the web can profit from JDK 1.8. But
I didn't find much through googling so far.
Comments welcome