瑞鲁手机APP下载网_专注推荐好用的手机APP和游戏APP

360英文搜索引擎使用方法介绍 云藏藏文搜索引擎使用方法介绍

jsp源码实例4(搜索引擎)

人气:1引自:手机APP下载网

Chrome for iOS发布了,速度非常快,但是有一点,默认的中文搜索引擎会自动跳转至google.cn进行搜素,导致每次搜索都需要再单击一次才行

近日,国内第二大搜索引擎360搜索,正式宣布与微软旗下搜索引擎Bing达成技术合作,上线360英文搜索(en.so.com)。360英文搜索将为国内4亿用户提供英文资讯,图片以及汉英词典翻译等内容,满足日益增强的国人对于海外信息的需要

package coreservlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.net.*; public class SearchEngines extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String searchString = request.getParameter("searchString"); if ((searchString == null) // (searchString.length() == 0)) { reportProblem(response, Missing search string."); return; } // The URLEncoder changes spaces to +" signs and other // non-alphanumeric characters to %XY", where XY is the // hex value of the ASCII (or ISO Latin-1) character. // Browsers always URL-encode form values, so the // getParameter method decodes automatically. But since // we're just passing this on to another server, we need to // re-encode it. searchString = URLEncoder.encode(searchString); String numResults = request.getParameter("numResults"); if ((numResults == null) // (numResults.equals("0")) // (numResults.length() == 0)) { numResults = 10"; } String searchEngine = request.getParameter("searchEngine"); if (searchEngine == null) { reportProblem(response, Missing search engine name."); return; } SearchSpec[] commonSpecs = SearchSpec.getCommonSpecs(); for(int i=0; i

专题文集:JSP实例 windows
引用标题:《360英文搜索引擎使用方法介绍 云藏藏文搜索引擎使用方法介绍》
来源地址:https://www.sdruilu.cn/index.php/news/tpart-29108.html