📄 pointrateservlet.java
字号:
/**
*
*
* 点击率统计
* @author Zhu Jian Min
*/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
*
*PointRateServlet.java
* @author Zhu Jian Min
* 2000.8.22
*/
//The class hand the Http request
public class PointRateServlet extends HttpServlet{
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
doGet(request, response);
}
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
HtmlOut htmlOut = new HtmlOut (response);
Person p=new Person();
p.setName (CommonMethods.GetUserName(request));
String pass = CommonMethods.GetUserPass (request);
if( p.getName ()==null || (!p.checkPassword(pass)) )
{
htmlOut.setErrorID (htmlOut.SHOW_SIMPLE_MESSAGE ,"",
"请先登录!","Login?action=reLog");
htmlOut.outHtml();
return;
}
PointRateChannel prChannel=new PointRateChannel();
String time=request.getParameter("time");//得到查询条件时间
String type=request.getParameter("type");//得到查询条件类型
type=CommonMethods.DealWithGBCodeOfRequest(type);
String keyword=request.getParameter("keyword");//得到关键字
keyword=CommonMethods.DealWithGBCodeOfRequest(keyword);//对关键字做处理
//TemplateList tempList=CommonMethods.getUserManageTemplate();
prChannel.makePointRate(p,htmlOut,time,type,keyword);//处理点击率统计
htmlOut.outHtml();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -