宾's profileBrian的窝PhotosBlogListsMore Tools Help

Blog


    毕业设计草稿纸


    developerworks上的taglib系列:

    表达式语言  表示就是一切  探讨core  访问SQL和XML

    JSP 自定义标记

    ---

    UTF-8编码

    • javascript

         http://www.webtoolkit.info/javascript-utf8.html

    • server.xml

         <Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"...

    • servlet

         request.setCharacterEncoding("UTF-8");
         response.setContentType("text/html; charset=UTF-8");
         response.setCharacterEncoding("UTF-8");

    • jsp

         <%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>

    • httpclient(get)

         GetMethod get = new GetMethod(url);
         get.addRequestHeader("Content-type", "text/xml; charset=utf-8");
         get.setQueryString(queryString);

    • httpclient(post)

         PostMethod post = new PostMethod(url);
         RequestEntity re = new StringRequestEntity(binaryData, "text/xml", "UTF-8");
         post.setRequestEntity(re);

    • httpclient(request)

         URLEncoder.encode(_title, "UTF-8")

    • httpclient(response)

         byte[] responseBody = post.getResponseBody();
         results = new String(responseBody, "UTF-8");

    • curl

         curl "http://localhost:8080/solr/..." -H "Content-type:text/xml; charset=utf-8"

         XP命令行的默认编码不是UTF-8,需要重定向到本地文件才能正确显示。

    • io
    • database

    ---

    Solr

    FacetingOverview

    ---

    页面开发

    页面调试工具   JavaScript E4X   简化Ajax和Java开发三部曲   面向Java开发人员的Ajax系列

    ---

    Lucene

    Lucene@dw(1)  Lucene@dw(2)  Lucene@dw(3)  Lucene@dw(4)

    Improving Indexing Speed  Improving Searching Speed