⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changechannellayout.java

📁 JAVA邮件系统
💻 JAVA
字号:
import java.io.*;
import java.text.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
 * 
 *
 * @author zhukejun
 */

public class ChangeChannelLayout extends HttpServlet {
	public void doGet(HttpServletRequest request,
                      HttpServletResponse response)
        throws IOException, ServletException
    {
      
		HtmlOut htmlOut = new HtmlOut (response);
     

		// 得到名字
		String pass;
		int p;
		
		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;
		}
		p=Integer.valueOf(request.getParameter("p")).intValue ();
		TemplateList tempList = CommonMethods.getMyLayoutTemplate ();
		if( tempList == null ){
			htmlOut.setErrorID (htmlOut.TEMPLATE_NOTFIND ,""
							 ,"find MyLayout channel error","Login");
			htmlOut.outHtml ();
			return;
		}
		
		MyLayoutChannel layout = new MyLayoutChannel();
			
		layout.MakeLayoutInfo(person,tempList,htmlOut,p );
		htmlOut.outHtml ();
	
	}
	public void doPost(HttpServletRequest request,
                      HttpServletResponse response)
        throws IOException, ServletException
    {
		 doGet(request,response);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -