Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28585

JDK 1.8 Power not Available for the Web, Yes or No?

From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject JDK 1.8 Power not Available for the Web, Yes or No?
Date 2014-05-28 23:49 +0200
Organization albasani.net
Message-ID <lm5lkl$j95$1@news.albasani.net> (permalink)

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

JDK 1.8 Power not Available for the Web, Yes or No? Jan Burse <janburse@fastmail.fm> - 2014-05-28 23:49 +0200
  Re: JDK 1.8 Power not Available for the Web, Yes or No? Arne Vajhøj <arne@vajhoej.dk> - 2014-05-28 18:15 -0400
    Re: JDK 1.8 Power not Available for the Web, Yes or No? MilkoB <mbrbc111@cogeco.ca> - 2014-05-28 19:27 -0400
  Re: JDK 1.8 Power not Available for the Web, Yes or No? Joerg Meier <joergmmeier@arcor.de> - 2014-05-29 01:03 +0200
    Re: JDK 1.8 Power not Available for the Web, Yes or No? Jan Burse <janburse@fastmail.fm> - 2014-05-29 11:58 +0200
  Re: JDK 1.8 Power not Available for the Web, Yes or No? Jan Burse <janburse@fastmail.fm> - 2014-05-29 10:50 +0200
    Re: JDK 1.8 Power not Available for the Web, Yes or No? Jan Burse <janburse@fastmail.fm> - 2014-05-29 10:59 +0200

csiph-web