我想将一个值从我的 Java 类传递给 Javascript。我已将值设置为portletSession. 我不知道如何从portletSessionJavascript 中获取值。
这是我用来在 portletSession 中设置值的代码。
 PortletSession portletSession = request.getPortletSession();
 portletSession.setAttribute("noExist", noExist);
我怎样才能做到这一点?