aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
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: 436
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: 17249
    
    6

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: 436
I am visiting another page first that results in being redirected to the error page through the JSP



directive. - Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why isn't configuration being activated when an error page is rendered?
 
Similar Threads
Trouble in activating Whizlabs SCJP Preparation Kit
Weblogic Assertion Error
JSPCompilation Error
Findermethod in Entitybean
Lifecycle of a SFSB with respect to activation