%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
<%@ page import="java.util.*"%>
<%@ page import="com.gpower.util.*"%>
<%@ page import="com.gpower.services.content.*"%>
<%@ page import="com.gpower.services.content.entity.*"%>
<%
ContentService contentService= ContentHelper.getContentService();
long articleID = ParamUtil.getLongParameter(request, "articleID", 0L);
int count = 1;
int initCount = 1;
try {
Content content = contentService.getContent(articleID);
count = initCount + content.getViewCount();
} catch (Exception e) {
System.out.println("error articleID!There is not Content Object exist!");
}
out.println("document.write('"+count+"')");
%>