﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Релиб / Программирование / Java  / Нужно сделать http-редирект из приложения! / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Релиб</description><link>http://www.relib.com/forums/</link><webMaster>robot@relib.com</webMaster><lastBuildDate>Mon, 08 Sep 2008 03:44:16 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Нужно сделать http-редирект из приложения!</title><link>http://www.relib.com/forums/Topic702232-5-1.aspx</link><description>Спасибо, понятно</description><pubDate>Thu, 14 Dec 2000 12:16:00 GMT</pubDate><dc:creator>javer</dc:creator></item><item><title>RE: Нужно сделать http-редирект из приложения!</title><link>http://www.relib.com/forums/Topic702232-5-1.aspx</link><description>Не совсем понятно, что подразумевается под http-редиректом, но посмотри вот этот пакет:http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletResponse.htmlИспользовать его можно примерно так:/**  * Handle the requests to the servlet *   * @param	HttpServletRequest * @param	HttpServletResponse */ 	protected void handleRequest(HttpServletRequest req, HttpServletResponse res)  {	res.setContentType(&amp;quot;text/html&amp;quot;);    try {   		res.sendRedirect(&amp;quot;http://relib.com&amp;quot;);	}    catch (IOException ioe) {}}</description><pubDate>Thu, 07 Dec 2000 16:56:00 GMT</pubDate><dc:creator>Alexey</dc:creator></item><item><title>Нужно сделать http-редирект из приложения!</title><link>http://www.relib.com/forums/Topic702232-5-1.aspx</link><description>Еще вопросик, мне нужно сделать http-редирект из приложения (сервлет), как это сделать?</description><pubDate>Wed, 06 Dec 2000 17:22:00 GMT</pubDate><dc:creator>javer</dc:creator></item></channel></rss>