The moose likes Spring and the fly likes Why isn't configuration being activated when an error page is rendered? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Why isn Watch "Why isn New topic
Author

Why isn't configuration being activated when an error page is rendered?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 388
Hi,

I'm using Spring 3.0. I create this application scope bean in my configuration file ...



However, if the first page that I visit is my /error-pages/500.jsp page, the "bookNowObject", referenced on that error page is null. If I visit the home page of my application, and then go back and visit the error page, the bookNowObject does get defined. Why does the configuration not get activated when the first page I visit is my error page?

Thanks, - Dave
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

Why are you going directly to your error page first??? I mean wouldn't any user go to an actual page, then something else that they might do cause an error?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 388
I am visiting another page first that results in being redirected to the error page through the JSP



directive. - Dave
 
 
subject: Why isn't configuration being activated when an error page is rendered?
 
Threads others viewed
Findermethod in Entitybean
JSPCompilation Error
Lifecycle of a SFSB with respect to activation
Trouble in activating Whizlabs SCJP Preparation Kit
Weblogic Assertion Error
developer file tools