当前位置: 技术问答>java相关
大家试试,怎么会没有输出呢?明明有print,就是输不出来。
来源: 互联网 发布时间:2015-08-26
本文导语: import javax.servlet.http.*; import javax.servlet.*; import java.util.*; import java.io.*; public class check extends HttpServlet{ public void init( ServletConfig config ) throws ServletException{ super.init( config ); } public void doGet(H...
import javax.servlet.http.*;
import javax.servlet.*;
import java.util.*;
import java.io.*;
public class check extends HttpServlet{
public void init( ServletConfig config ) throws ServletException{
super.init( config );
}
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, java.io.IOException
{
try{
// Cookie userCookie = new Cookie("Check_User", "True");
// response.addCookie(userCookie);
Cookie[] cookies = request.getCookies();
Cookie cookie = null;
int cookieLength = cookies.length;
String s1 = null;
for(int i=0; i
import javax.servlet.*;
import java.util.*;
import java.io.*;
public class check extends HttpServlet{
public void init( ServletConfig config ) throws ServletException{
super.init( config );
}
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, java.io.IOException
{
try{
// Cookie userCookie = new Cookie("Check_User", "True");
// response.addCookie(userCookie);
Cookie[] cookies = request.getCookies();
Cookie cookie = null;
int cookieLength = cookies.length;
String s1 = null;
for(int i=0; i