<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wicket &#8211; Sending a 301 redirect</title>
	<atom:link href="http://www.jtict.com/blog/wicket-sending-a-301-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jtict.com/blog/wicket-sending-a-301-redirect/</link>
	<description>About programming stuff</description>
	<lastBuildDate>Thu, 15 Jul 2010 03:23:56 +0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://www.jtict.com/blog/wicket-sending-a-301-redirect/comment-page-1/#comment-3247</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 21 Oct 2009 12:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtict.com/blog/?p=37#comment-3247</guid>
		<description>I just had this problem with Wicket 1.4.1 and came across this blog post. Even with mixed up headlines and 302 in both solutions, it gave me the correct head start, so thanks, JD.

Sending a real 301 is easily accomplished by replacing line 7 (the response.redirect() call) of the code with

response.setHeader(&quot;Location&quot;, url);</description>
		<content:encoded><![CDATA[<p>I just had this problem with Wicket 1.4.1 and came across this blog post. Even with mixed up headlines and 302 in both solutions, it gave me the correct head start, so thanks, JD.</p>
<p>Sending a real 301 is easily accomplished by replacing line 7 (the response.redirect() call) of the code with</p>
<p>response.setHeader(&#8221;Location&#8221;, url);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter P.</title>
		<link>http://www.jtict.com/blog/wicket-sending-a-301-redirect/comment-page-1/#comment-2719</link>
		<dc:creator>Peter P.</dc:creator>
		<pubDate>Fri, 28 Aug 2009 12:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtict.com/blog/?p=37#comment-2719</guid>
		<description>Hi there, I think you probably have mixed up the headlines &quot;301 using Wicket&quot; and &quot;302 using Wicket&quot;, the first one does a 302 for me (Wicket 1.3.4)

Also, I tried the 2nd snippet (called from setHeaders), which results in a 302 as well... within a page&#039;s overwritten setHeaders method, I am using the following code to have a 301 redirect:

HttpServletResponse hsr = response.getHttpServletResponse();
hsr.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
hsr.addHeader(&quot;Location&quot;, url);</description>
		<content:encoded><![CDATA[<p>Hi there, I think you probably have mixed up the headlines &#8220;301 using Wicket&#8221; and &#8220;302 using Wicket&#8221;, the first one does a 302 for me (Wicket 1.3.4)</p>
<p>Also, I tried the 2nd snippet (called from setHeaders), which results in a 302 as well&#8230; within a page&#8217;s overwritten setHeaders method, I am using the following code to have a 301 redirect:</p>
<p>HttpServletResponse hsr = response.getHttpServletResponse();<br />
hsr.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);<br />
hsr.addHeader(&#8221;Location&#8221;, url);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
