Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÖ®Servlet¿ª·¢Ê¾Àý

±¾ÎÄ°üÀ¨:
A: servletÔ´ÂëʵÀý
B: servlet²¿Êð
C: ¿Í»§¶ËÔ¶³Ìµ÷ÓÃ
D: servlet¿ª·¢µ÷Óù¤¾ß
A: servletÔ´ÂëʵÀý
package com.viewlinecn.userlogin.www.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.viewlinecn.userlogin.util.OrganizeXML;
/**
* ÓÎÏ·¸öÐÔ»¯µÇ¼ÈÏÖ¤·þÎñ
* @author cairenxi * @version 1.0
*/
public class LoginGameServlet extends HttpServlet {
     private final static long serialVersionUID = -200904271326L;
     private static Log log = LogFactory.getLog(LoginGameServlet.class);
     public void init() throws ServletException {
            //no code
     } public
     void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
           // Ìí¼Ó´úÂë
    } public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
           // Ìí¼Ó´úÂë
    }
}
B: servlet²¿Êð
web.xml ÖÐÅäÖÃ<Servlet>...</Servlet>½Úµã
class: com.viewlinecn.userlogin.www.servlet.LoginGameServlet ;
url:    /servlets/login.html
C: ¿Í»§¶ËÔ¶³Ìµ÷ÓÃ
URL: http://host:port/context/servlets/login.html
D: servlet¿ª·¢µ÷Óù¤¾ß
package com.viewlinecn.common.http.util;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.HttpURLConnection;
import java.n


Ïà¹ØÎĵµ£º

java ²¶×½ÐźÅ(linuxϵÄkill,ctrl+c)

import sun.misc.Signal;
import sun.misc.SignalHandler;
/***
* javaÐźŴ¦Àídemo
* @author jiang_qh
*
*/
public class SignalHandlerExample implements SignalHandler{
private SignalHandler oldHandler;
public void handle(Signal signal) {
System.out.println("Signal handler called for signal " ......

java Ä£ÄâselectorµÄ¸½´ø¹¦ÄÜ

package com.event;
import java.util.Map;
public interface EventListener {
 void onEvent(Map event);
}
package com.socket;
import java.nio.ByteBuffer;
import java.util.HashMap;
import com.event.EventListener;
/*
 * Ô¤´¦ÀíÀà
 */
public class BaseObject {
 private boole ......

Java°æÐÇÇò´óÕ½ÓÎÏ·£¨ºáÏòÉä»÷£©

×¼±¸Öð²½ÕûÀíÒ»ÏÂÊÖÖеĵÚÈý·½JavaÓÎÏ·´úÂ룬½«ÄÜÓõIJ¿·ÖÈÚÈëµ½LGameÀïÈ¥£¬Ã»ÓÐÄÜÓò¿·ÖµÄ¾ÍÖ±½Óɾµô¡£
µ«ÎÞÂÛ³ÌʽÄÑÒ×ÈçºÎ£¬Ò²ÊÇÔ­×÷ÕßÒ»·¬ÐÄѪ£¬²»Ó¦½«ËüÃÇÆúÈç±ÖÂÄ£¬ËùÒÔÎÒ½«Ò»Ò»ÕûÀíºó·¢²¼µ½ÍøÉϱ£Áô£¨±ÜÃâʧ´«……£©£¬Ò²·½±ãÓÐÐèÒªµÄÅóÓѲο¼Ê¹Óá£
ÏÂÃæÉÏ´«µÄÊÇÒ»¸öJava°æºáÏòÉä»÷ÓÎÏ·£¬ËäÈ»´úÂë±È½ÏÁ ......

SQL Server 2000 Java¿ª·¢Öе±Ç°ÈÕÆڵĴ¦Àí

1¡¢ÔÚÊý¾Ý¿â½¨±íµÄʱºò×Ö¶ÎÖ±½ÓÉèÖÃΪDATETIMEÀàÐÍ£»
2¡¢Ö´ÐвåÈëµÄʱºòʹÓÃÈçÏÂÓï¾ä£º
PreparedStatement pstmt = conn.prepareStatement("insert into guestbook(gst_user,gst_title,gst_content,gst_ip,gst_time) values(?,?,?,?,getdate())");
3¡¢Òª°ÑÈÕÆÚ´ÓÊý¾Ý¿âÖÐÈ¡³ö£¬Ö´ÐÐÈçÏÂÓï¾ä£º
     ......

JavaÎļþ²Ù×÷´óÈ«

ÎļþµÄ½¨Á¢/¼ì²éÓëɾ³ý
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.io.*"%>
<html>
<head>
<title>ÎļþµÄ½¨Á¢¡¢¼ì²éÓëɾ³ý</title>
</head>
<body>
<%
String path=request.getRealPath("");
//out.println(path);
File f=n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ