I'm looking now for a couple of days for the answer to the following question:
I have a Spring 2.5
webapplication and I want to show a certain setup screen if the initialization of the spring context has failed. In this setup screen they can look why the server doesn't startup and maybe make some changes (upload new config.properties
file)
But how can I implemented this on a smart way? Has Spring already something like this or do I need to extend the ContextLoader
for example?
I tried something in the web.xml like this: but this doesn't seems to work:
<error-page>
<error-code>404</error-code>
<location>/public/setup.jsp</location>
</error-page>
Solution:
I start with a default web.xml and after the setup is done I replace the web.xml with the right 'application' web.xml. Because the web.xml is replaced the servers restarts. This works great. Thanks again for your answers.