Wrox Programmer Forums
|
BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
This is the forum to discuss the Wrox book Beginning Spring Framework 2 by Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani; ISBN: 9780470101612
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 19th, 2009, 05:07 AM
Registered User
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with RSS Section - my solution

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...





Similar Threads
Thread Thread Starter Forum Replies Last Post
VBScript or SQL solution to problem mat41 Classic ASP Professional 5 October 8th, 2008 05:13 PM
Problem with the CData Section while using Xslt Vered XSLT 2 September 21st, 2006 11:21 AM
Crystal Reports Section Problem softrajesh BOOK: Beginning Java 2 8 February 3rd, 2005 11:10 PM
Crystal Reports Section Problem while Grouping softrajesh BOOK: Professional Crystal Reports for VS.NET 0 November 25th, 2004 12:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.