File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dave Alvarado
Ranch Hand
Posts: 436
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dave Alvarado
Ranch Hand
Posts: 436
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am visiting another page first that results in being redirected to the error page through the JSP



directive. - Dave
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic