login.jsp 298 B

1234567891011
  1. {success:true}
  2. <%
  3. String username = request.getParameter("j_username");
  4. if (username == null) {
  5. if (session.getAttribute("username") == null) {
  6. session.setAttribute("username", "guest");
  7. }
  8. } else {
  9. session.setAttribute("username", username);
  10. }
  11. %>