ActionContext context = ActionContext.getContext();
context.getSession().put("username", getUsername());
簡單登錄狀態保持,向會話傳入一個參數。
在JSP頁面驗證參數是否爲空
ActionContext context = ActionContext.getContext();
context.getSession().put("username", getUsername());
簡單登錄狀態保持,向會話傳入一個參數。
在JSP頁面驗證參數是否爲空