The below jsp code is not giving output as expected
<%@page contentType="text/html" pageEncoding="UTF-8" buffer="none" autoFlush="true"%>
<%@page import="java.util.logging.Logger" %>
<%!
String test = "Hei you!!!";
String test2="ok done";
%> <%= test = (test + test2)%>
out put: (on sbusequent page refresh)
Hei you!!! ok done
Hei you!!! ok done
Hei you!!! ok done
expecting:(only on each request)
Hei you!!! ok done
I am not sure if the variable 'test' is stored in cache in jsp server or any binding occurs or variable in this case is stored in application/session scope. Any help is appreciable.