登陆用户怎样获取验证码和保存用户到cookie中(四)

2014-11-24 08:20:01 · 作者: · 浏览: 8
equest(); } catch (e) { try { // IE xmlHttp = new ActiveXObject("MSXML2.XMLHTTP5.0"); } catch (ex) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; }

index.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



  
    
    
    My JSP 'index.jsp' starting page
    
	
  
	
  
	
      
	
  
	
  
	
  

  
  
  
  	查询
  


主页面login. jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



  
    
    
    My JSP 'login.jsp' starting page
    
	
  
	
  
	
      
	
  
	
  
	
  

  
  
  
     
  
用户名:
密码:
验证码: 验证码

\

< http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+PGJyPgo8L3A+CjxwPjxpbWcgc3JjPQ=="https://www.cppentry.com/upload_files/article/76/1_ynzwm__.jpg" alt="">