9 Sep
2006
9 Sep
'06
5:08 p.m.
And here is the code fixed : <% scontext=context.getRequest().getSession().getServletContext(); test=scontext.getAttribute("test"); if(test==null) println "test is null" else println "test is not null" scontext.setAttribute("test",new Object()) %>
Yes, you're right. It must be scontext.setAttribute("test",new Object()) instead of put(). But that't not the problem. I always get NoClassDefFoundError: org/apache/catalina/session/StandardSessionFacade or when I copy catalina.jar to WEB-INF/lib I get a ClassCastException because of different ClassLoaders. Barbara -- View this message in context: http://www.nabble.com/groovy---context-tf2226640.html#a6225830 Sent from the XWiki- Users forum at Nabble.com.