java web¿ª·¢ÖзÀÖ¹ÂÒÂëµÄ·½·¨
1.ÔÚϵͳÖе¼ÈëÒ»ÏÂsource
SetCharacterEncodingFilter.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
//******************************************************
//¥·¥¹¥Æ¥àÃû 販売¥·¥¹¥Æ¥à
//機ÄÜÃû ÈÕ±¾語ÎÄ×Ö»¯¤±·ÀÖ¹
//¥¯¥é¥¹Ãû SetCharacterEncodingFilter.java
//
//
//@author xiehl (Tomcat¤«¤é転載)
//@version 2009.07.13 ÐÂ規×÷³É
//
//******************************************************
/**
* <p>Example filter that sets the character encoding to be used in parsing the
* incoming request, either unconditionally or only if the client did not
* specify a character encoding. Configuration of this filter is based on
* the following initialization parameters:</p>
* <ul>
* <li><strong>encoding</strong> - The character encoding to be configured
* for this request, either conditionally or unconditi
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
//¼òµ¥µÄjavaÈÕÆÚ¸ñʽ¿ØÖÆ
java.Text.SimpleDateFormat format = new java.Text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");//ÄãÏëÒªµÄ¸ñʽ
//×¢ÒâÔµÄλÖÃÒª´óдµÄMM Òª²»¾Í¿´µ½µÄ²»ÊÇÕýÈ·ÏÔʾ£¬¿ÉÒÔ°ÑÄãÏëҪת»»µÄÈÕÆÚת»»ÎªÏàÓ¦µÄ¸ñʽ°¡
format.format(new java.util.Date());//dateΪÈÕÆÚÐÍÊý¾Ý£¬¿ÉÒÔÈÎÒ ......
ÔÚ
Java SE1.5
ÖУ¬
Ôö¼ÓÁËÒ»¸öеÄÌØÐÔ£º·ºÐÍ£¨ÈÕ±¾ÓïÖеÄ×ܳÆÐÍ£©¡£ºÎν·ºÐÍÄØ£¿Í¨Ë×µÄ˵£¬¾ÍÊÇ·º·ºµÄÖ¸¶¨¶ÔÏóËù²Ù×÷µÄÀàÐÍ£¬¶ø²»Ïñ³£¹æ·½Ê½Ò»ÑùʹÓÃijÖ̶ֹ¨µÄÀàÐÍÈ¥Ö¸¶¨¡£
·ºÐ͵ı¾ÖʾÍÊǽ«Ëù²Ù×÷µÄÊý¾ÝÀàÐͲÎÊý»¯£¬Ò²¾ÍÊÇ˵£¬¸ÃÊý¾ÝÀàÐͱ»Ö¸¶¨ÎªÒ»¸ö²ÎÊý¡£ÕâÖÖ²ÎÊýÀàÐÍ¿ÉÒÔʹÓÃÔÚÀà¡¢½Ó¿ÚÒÔ¼°·½·¨¶¨ÒåÖС£
......
byte a=112,ÓóÌÐòʵÏÖ£¬½«ÆäÑ»·×óÒÆÈýλºÍÓÒÒÆÈýλ¡£
112µÄ¶þ½øÖÆÔÂë:0111 0000
112Ñ»·×óÒÆ3λºóµÄ¶þ½øÖÆÂë:1000 0011
112Ñ»·ÓÒÒÆ3λºóµÄ¶þ½øÖÆÂë:0000 1110
ÏȽ«Ñ»·×óÒÆµÄ³ÌÐò´úÂë¸æËß´ó¼Ò:
public class TestCircle{
public static void main(String args[]){
byte x=112;
& ......
-------------------------------2009Äê3ÔÂ19ÈÕ¿ªÊ¼-----------------------------
ÏÂÔØJDK Myeclipse Netbeans JBulider²¢°²×°
ËïöÎ »ù´¡½²½â
ÂíÊ¿±ø »ù´¡½²½â
ÂíÊ¿±ø ̹¿Ë´óÕ½ (µ¥»ú°æ±¾! °üÀ¨Í¼Æ¬°æ)
¹ù¿Ë»ª J2ME -----------------------------------2009Äê5ÔÂ2ÈÕ------ ......