0
websphere Portal 8.0에 설치할 VisitCounter라는 JSR 286 포틀릿을 생성하려고합니다. VisitCounter는 온라인 사용자 수를 계산합니다.JSR 286 포틀릿 온라인 사용자 수를 계산하십시오.
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
// Set the MIME type for the render response
response.setContentType(request.getResponseContentType());
// Check if portlet session exists
VisitCounterPortletSessionBean sessionBean = getSessionBean(request);
if(sessionBean==null) {
//response.getWriter().println("<b>NO PORTLET SESSION YET</b>");
return;
}
........
}
어떻게 만드시겠습니까? 감사합니다.