<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104345&amp;view=findpost&amp;p=794109</guid>
        <pubDate>Mon, 12 Feb 2001 06:47:00 +0000</pubDate>
        <title>запрос на поисковый сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=104345&amp;view=findpost&amp;p=794109</link>
        <description><![CDATA[Lunya: p.s. Если требуется только считывать, то не нужно вызывать showDocument - сразу считывайте документ]]></description>
        <author>Lunya</author>
        <category>Java</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104345&amp;view=findpost&amp;p=794108</guid>
        <pubDate>Mon, 12 Feb 2001 06:44:00 +0000</pubDate>
        <title>запрос на поисковый сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=104345&amp;view=findpost&amp;p=794108</link>
        <description><![CDATA[Lunya: Все поисковые системы имеют ссылку для поиска. Привожу выдержку из одной из моих Java-программ - может поможет:)<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; TextField text=new TextField();/* строка ввода текста, который нужно искать*/ </div><div class="code_line">......</div><div class="code_line">/***************MakeStr()******************/</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; String MakeStr(){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // преобразовать строку с пробелами в строку с &quot;плюсами&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; String StrResult = &quot;&quot;;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; StringTokenizer strTok = new StringTokenizer(text.getText());</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; while(strTok.hasMoreTokens()){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( StrResult.equals(&quot;&quot;)){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StrResult = strTok.nextToken();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } //if</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StrResult = StrResult + &quot;+&quot; + strTok.nextToken() ;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }//else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; }//while()</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; return(StrResult);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; }</div><div class="code_line">//---------</div><div class="code_line">String StrRes=new String(MakeStr());</div><div class="code_line">&nbsp;</div><div class="code_line">if(((String)choice.getSelectedItem()).equalsIgnoreCase(&quot;Yahoo&quot;))</div><div class="code_line">&nbsp;StrRes = &nbsp; &nbsp;&quot;http://av.yahoo.com/bin/query?p=&quot; + StrRes;</div><div class="code_line">else if(((String)choice.getSelectedItem()).equalsIgnoreCase(&quot;Lycos&quot;))</div><div class="code_line">&nbsp;StrRes = &quot;http://www.lycos.com/cgi-bin/pursuit?query=&quot; + StrRes;</div><div class="code_line">else if(((String)choice.getSelectedItem()).equalsIgnoreCase(&quot;AltaVista&quot;))</div><div class="code_line">&nbsp;StrRes = &quot;http://www.altavista.digital.com/cgi-bin/query?q=&quot; + StrRes;</div><div class="code_line">&nbsp;else if(((String)choice.getSelectedItem()).equalsIgnoreCase(&quot;HotBot&quot;))</div><div class="code_line">&nbsp;StrRes = &nbsp; &nbsp;&quot;http://www.search.hotbot.com/hResult.html?MT=&quot; + StrRes;</div><div class="code_line">&nbsp;else if(((String)choice.getSelectedItem()).equalsIgnoreCase(&quot;InfoSeek&quot;))</div><div class="code_line">&nbsp;StrRes = &nbsp; &nbsp;&quot;http://www.infoseek.com/Titles?qt=&quot; + StrRes;</div><div class="code_line">&nbsp;&nbsp;else if (((String)choice.getSelectedItem()).equalsIgnoreCase(&quot;Excite&quot;))</div><div class="code_line">&nbsp;StrRes = &nbsp; &nbsp;&quot;http://search.excite.com/search.gw?search=&quot; + StrRes;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;try &nbsp; &nbsp;</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp; URL englink=new &nbsp;URL (StrRes);</div><div class="code_line">&nbsp;getAppletContext().showDocument(englink);</div><div class="code_line">&nbsp;}</div><div class="code_line">&nbsp;catch (MalformedURLException e) {}</div><div class="code_line">// затем можете так же считать требуемую страницу</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>Lunya</author>
        <category>Java</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=104345&amp;view=findpost&amp;p=794107</guid>
        <pubDate>Mon, 12 Feb 2001 04:05:00 +0000</pubDate>
        <title>запрос на поисковый сервер</title>
        <link>https://forum.sources.ru/index.php?showtopic=104345&amp;view=findpost&amp;p=794107</link>
        <description><![CDATA[ninel: Как программно послать запрос на поисковый сервер и получить  отуда ссылки (тоже программно)?]]></description>
        <author>ninel</author>
        <category>Java</category>
      </item>
	
      </channel>
      </rss>
	