anchor.diff:  if (cookies != null) {
    for (Cookie cookie : cookies) {
      if (cookie.getName().equals(CookieNames.TOKEN_KEY)) {
  -// 	   ScriptEngineManager factory = new ScriptEngineManager();
  -// 	   ScriptEngine engine = factory.getEngineByName("JavaScript");
  -// 	   ScriptContext context = engine.getContext();
  -// 	   engine.eval("function decodeStr(encoded){"
  -// 	             + "var result = unescape(encoded);"
  -// 	             + "return result;"
  -// 	             + "};",context);
  -
  -// 	     Invocable inv;   
  -
  -// 	    inv = (Invocable) engine;
  -// 	    token =  (String)inv.invokeFunction("decodeStr", new Object[]{cookie.getValue()});
  -	    
   	    token = java.net.URLDecoder.decode(cookie.getValue(), "UTF-8");
  -	   System.out.println( token );
       }
     }
   }
  
positive.code: 	}
  		
  		// Authentication error or no token at all: send login page
  		%> <jsp:include page="auth.html" flush="true" /> <%
  	
  	
  %>
  
  
negative.code: <%@ page language="java" contentType="text/html; charset=UTF-8"
  	pageEncoding="UTF-8"%>
  
  <%@page import="eu.riscoss.db.RiscossDatabase"%>
  <%@page import="eu.riscoss.server.DBConnector"%>
  
  <%@ page import="eu.riscoss.db.RiscossDatabase"%>
  <%@ page import="eu.riscoss.shared.CookieNames"%>
  
  <%@ page import="javax.script.Invocable"%>
  <%@ page import="javax.script.ScriptContext"%>
  <%@ page import="javax.script.ScriptEngine"%>
  <%@ page import="javax.script.ScriptEngineManager"%>
  
  <% 
  	
  