Hi there, just creating this post in case anyone is having a problem with the RSS section in this book. Also - thanks to everyone else who's posted all the fixes for all the other problems in the preceeding chapters.
I found that when doing the RSS bit, the AlbumPicturesController was doing its bit fine, however, it ended up forwarding to rss.jsp instead of the rss view. Which resulted in a 404.
I discovered by looking at some other view controlers how to's on the net that the cause of the problem was that the view wired in by the ResourceBundleViewResolver was being ignored (or maybe overriden by the more general InternalResourceViewResolver. This indicates that the order in which these beans are declared in the pix-servlet.xml file does not affect their actual order of importance...
This problem was thus solved by using the p:order attribute in the bean declaration.
So I changed this:
Code:
<bean class="org.springframework.web.servlet.view.ResourceBundleViewResolver" p:basename="views"/>
to this:
Code:
<bean class="org.springframework.web.servlet.view.ResourceBundleViewResolver" p:basename="views" p:order="0"/>
Apologies if I've used the wrong spring terminology in this post...
Also - a note the authors - I went through a load of spring books - before deciding on this one - even though it was older than a lot of others. Despite the problems with getting the examples to run... it's still a great book. And the errors promote a bit of "delving" which leads to quicker understanding of the subject matter. So thank...