changeuserchannel.java
来自「JAVA邮件系统」· Java 代码 · 共 56 行
JAVA
56 行
import java.io.*;
import java.text.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
*
*
* @author zhukejun
*/
public class ChangeUserChannel extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
HtmlOut htmlOut = new HtmlOut (response);
// 得到名字
String pass;
Person person = new Person();
person.setName (CommonMethods.GetUserName(request));
pass = CommonMethods.GetUserPass (request);
person.setPassword ( pass );
if( person.getName ()==null || (!person.checkPassword(pass)) )
{
htmlOut.setErrorID (htmlOut.SHOW_SIMPLE_MESSAGE ,"",
"请先登录!","Login?action=reLog");
htmlOut.outHtml();
return;
}
TemplateList tempList = CommonMethods.getMySzTemplate ();
if( tempList == null ){
htmlOut.setErrorID (htmlOut.TEMPLATE_NOTFIND ,""
,"getMySzTemplate error","Login");
htmlOut.outHtml ();
return;
}
MyszChannel sz = new MyszChannel();
String sPage = request.getParameter("p");
int nPage=0;
if( sPage!=null )
nPage=Integer.valueOf(sPage).intValue ();
sz.MakeSzInfo(person,tempList,htmlOut,nPage );
htmlOut.outHtml ();
}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?