sessionutil.java
来自「A brew application taking backup of the 」· Java 代码 · 共 73 行
JAVA
73 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package Login;import java.sql.SQLException;import javax.servlet.http.HttpSession;/** * * @author Work IS Passion */public class SessionUtil { private static HttpSession session; /** * @return the session */ public static HttpSession getSession() { return session; } /** * @param aSession the session to set */ public static void setSession(HttpSession aSession) { session = aSession; } private String message; private String str; /** * @return the session */ /** * @return the message */ public String getMessage() { return message; } /** * @param message the message to set */ public void setMessage(String message) { this.message = message; } /** * @return the str */ public String getStr() { return str; } /** * @param str the str to set */ public void setStr(String str) { this.str = str; } public String Validate( String str1) throws SQLException { setStr(str1); LoginManager lmg = new LoginManager(); setMessage(lmg.Validate(getStr())); System.out.println("Validating user.."); return getMessage(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?