In which scope does the variable declared inside the scriplet get created? page scope? can i access it inside any EL expression directly there after?
But this did not work for a map:
<% Map<String,String> mymap=new HashMap<String,String>();
mymap.put("5","val1");
%>
<c: out value='${mymap["5"]}' />
Your statement says to me that you are claiming that creating scriptlet variables is synonymous with creating them in page scope. Which is, of course, not correct. If you meant something else, you will need to elaborate.