<?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: RESTful URLs with Spring MVC and UrlRewriteFilter</title>
	<atom:link href="http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/feed/" rel="self" type="application/rss+xml" />
	<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/</link>
	<description>is a software engineer with an interest in Spring, Hibernate, Red5 and jQuery development.</description>
	<lastBuildDate>Tue, 24 May 2011 21:40:59 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Thas</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-5754</link>
		<dc:creator>Thas</dc:creator>
		<pubDate>Thu, 03 Dec 2009 04:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-5754</guid>
		<description>HI, I am using struts2 with spring &amp; tiles

I have the following rule
 
    ^/test5\.html$
    /welcome.action
    

but getting HTTP Status 404 

however if I change the rule to 
 
    ^/test5\.html$
    /star_test.jsp
    

it works...
can you please tell me what I am missing here

thanks alot</description>
		<content:encoded><![CDATA[<p>HI, I am using struts2 with spring &amp; tiles</p>
<p>I have the following rule</p>
<p>    ^/test5\.html$<br />
    /welcome.action</p>
<p>but getting HTTP Status 404 </p>
<p>however if I change the rule to </p>
<p>    ^/test5\.html$<br />
    /star_test.jsp</p>
<p>it works&#8230;<br />
can you please tell me what I am missing here</p>
<p>thanks alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Croteau</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-5117</link>
		<dc:creator>Mike Croteau</dc:creator>
		<pubDate>Fri, 28 Aug 2009 14:25:52 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-5117</guid>
		<description>Well, got it working the way I needed.  I was messing up on my  in that I wasnt writing correct regular expressions.  Here is an example of  my working code with 1 parameter

    
        orderportal/home\?switchprofile\=mike$
        op_urlrewrite/orderportal/custom/CUSTOM_PAGE_3?switchprofile=steph
    

Thanks</description>
		<content:encoded><![CDATA[<p>Well, got it working the way I needed.  I was messing up on my  in that I wasnt writing correct regular expressions.  Here is an example of  my working code with 1 parameter</p>
<p>        orderportal/home\?switchprofile\=mike$<br />
        op_urlrewrite/orderportal/custom/CUSTOM_PAGE_3?switchprofile=steph</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Croteau</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-5112</link>
		<dc:creator>Mike Croteau</dc:creator>
		<pubDate>Thu, 27 Aug 2009 14:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-5112</guid>
		<description>Hey Carl, I am trying to get the urlrewrite filter to work with 1 parameter... I am getting it to work with simple urls such as

    
        
            The rule means that requests to /test/status/ will be redirected to /rewrite-status
            the url will be rewritten.
        
        orderportal/custom/CUSTOM_PAGE_5
        orderportal/custom/CUSTOM_PAGE_3
    

but having problems when trying to filter with a parameter in the url like:

    
        
            The rule means that requests to /test/status/ will be redirected to /rewrite-status
            the url will be rewritten.
        
        ^/orderportal/home?switchprofile=$mike
        orderportal/custom/CUSTOM_PAGE_4
    

I have tried lots of variations on the parameter like ?switchprofile={encode:mike}, ?switchprofile=mike$, ?switchprofile=$mike.  No luck.  

Any direction would be most helpful.  Posted on UrlRewrite google group as well.  

Btw, ironic I landed on your site.

Mike</description>
		<content:encoded><![CDATA[<p>Hey Carl, I am trying to get the urlrewrite filter to work with 1 parameter&#8230; I am getting it to work with simple urls such as</p>
<p>            The rule means that requests to /test/status/ will be redirected to /rewrite-status<br />
            the url will be rewritten.</p>
<p>        orderportal/custom/CUSTOM_PAGE_5<br />
        orderportal/custom/CUSTOM_PAGE_3</p>
<p>but having problems when trying to filter with a parameter in the url like:</p>
<p>            The rule means that requests to /test/status/ will be redirected to /rewrite-status<br />
            the url will be rewritten.</p>
<p>        ^/orderportal/home?switchprofile=$mike<br />
        orderportal/custom/CUSTOM_PAGE_4</p>
<p>I have tried lots of variations on the parameter like ?switchprofile={encode:mike}, ?switchprofile=mike$, ?switchprofile=$mike.  No luck.  </p>
<p>Any direction would be most helpful.  Posted on UrlRewrite google group as well.  </p>
<p>Btw, ironic I landed on your site.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tjerk</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-4351</link>
		<dc:creator>Tjerk</dc:creator>
		<pubDate>Tue, 09 Jun 2009 13:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-4351</guid>
		<description>Carl,

I like your solution, since it&#039;s nicely layered. 
Small point of improvement however:

...
REST style URL like 
http://localhost:8080/sprocket/1234/edit
...

Should be 
http://localhost:8080/sprocket/1234/

Since actions like &#039;edit&#039; should not be included in the URL but should be purely declared via HTTP methods in the request header like &#039;GET/PUT/POST/DELETE&#039;. The &#039;edit&#039; action on your controller should then be targeted by using the PUT method in the header of the request. The @RequestMapping annotation let&#039;s you do this.
This way you connect the action based Spring MVC way with the resource based REST way.

Spring 3 has better support for this, but since you mention, it won&#039;t be available for some time.

Kind regards,
Tjerk</description>
		<content:encoded><![CDATA[<p>Carl,</p>
<p>I like your solution, since it&#8217;s nicely layered.<br />
Small point of improvement however:</p>
<p>&#8230;<br />
REST style URL like<br />
<a href="http://localhost:8080/sprocket/1234/edit" >http://localhost:8080/sprocket/1234/edit</a><br />
&#8230;</p>
<p>Should be<br />
<a href="http://localhost:8080/sprocket/1234/" >http://localhost:8080/sprocket/1234/</a></p>
<p>Since actions like &#8216;edit&#8217; should not be included in the URL but should be purely declared via HTTP methods in the request header like &#8216;GET/PUT/POST/DELETE&#8217;. The &#8216;edit&#8217; action on your controller should then be targeted by using the PUT method in the header of the request. The @RequestMapping annotation let&#8217;s you do this.<br />
This way you connect the action based Spring MVC way with the resource based REST way.</p>
<p>Spring 3 has better support for this, but since you mention, it won&#8217;t be available for some time.</p>
<p>Kind regards,<br />
Tjerk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: non-random ramble :: RESTfull uri&#8217;s with Spring 2.5</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-4234</link>
		<dc:creator>non-random ramble :: RESTfull uri&#8217;s with Spring 2.5</dc:creator>
		<pubDate>Wed, 20 May 2009 11:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-4234</guid>
		<description>[...] UrlRewriteFilter [...]</description>
		<content:encoded><![CDATA[<p>[...] UrlRewriteFilter [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Sziebert</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-3889</link>
		<dc:creator>Carl Sziebert</dc:creator>
		<pubDate>Wed, 29 Apr 2009 15:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-3889</guid>
		<description>rs:

Thanks for the heads up.  I&#039;ve purged the .svn files from the downloads.</description>
		<content:encoded><![CDATA[<p>rs:</p>
<p>Thanks for the heads up.  I&#8217;ve purged the .svn files from the downloads.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rs</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-3876</link>
		<dc:creator>rs</dc:creator>
		<pubDate>Wed, 29 Apr 2009 08:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-3876</guid>
		<description>Good, clear write up - I like it

Just one side note - don&#039;t include them &#039;.svn&#039; folders in your zip file :)</description>
		<content:encoded><![CDATA[<p>Good, clear write up &#8211; I like it</p>
<p>Just one side note &#8211; don&#8217;t include them &#8216;.svn&#8217; folders in your zip file <img src='http://sziebert.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog Xebia France - URLs propres avec UrlRewriteFilter</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-2183</link>
		<dc:creator>Blog Xebia France - URLs propres avec UrlRewriteFilter</dc:creator>
		<pubDate>Wed, 25 Feb 2009 13:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-2183</guid>
		<description>[...] Exemple d&#039;utilisation d&#039;UrlRewriteFilter avec Spring MVC [...]</description>
		<content:encoded><![CDATA[<p>[...] Exemple d&#8217;utilisation d&#8217;UrlRewriteFilter avec Spring MVC [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Sziebert</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-2128</link>
		<dc:creator>Carl Sziebert</dc:creator>
		<pubDate>Fri, 20 Feb 2009 17:55:55 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-2128</guid>
		<description>I&#039;ve updated the sample application to use Ivy to manage the dependencies for the project.  Going forward, you&#039;ll need to compile and deploy the application yourselves.  This should remedy the issues people were having when running it.  As an added benefit, the sample application download is significantly smaller now that the JARs are retrieved automagically by Ivy.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve updated the sample application to use Ivy to manage the dependencies for the project.  Going forward, you&#8217;ll need to compile and deploy the application yourselves.  This should remedy the issues people were having when running it.  As an added benefit, the sample application download is significantly smaller now that the JARs are retrieved automagically by Ivy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Sziebert</title>
		<link>http://sziebert.net/posts/restful-urls-with-spring-mvc-and-urlrewritefilter/comment-page-1/#comment-2119</link>
		<dc:creator>Carl Sziebert</dc:creator>
		<pubDate>Thu, 19 Feb 2009 16:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://sziebert.net/?p=14#comment-2119</guid>
		<description>@mike:

What are the errors you are seeing when you try to run the code?  I compiled it using JDK6 and ran it in Tomcat 6 on my MacBook Pro.</description>
		<content:encoded><![CDATA[<p>@mike:</p>
<p>What are the errors you are seeing when you try to run the code?  I compiled it using JDK6 and ran it in Tomcat 6 on my MacBook Pro.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

