I am looking for a couple of days to answer the following question:
I have a Spring 2.5 web application, and I want to show a specific configuration screen if the initialization of the spring context failed. On this settings screen, they can see why the server does not start and can make some changes (download the new config.properties file)
But how can I implement this in a smart way? Does spring have something similar or do I need to extend ContextLoader for example?
I tried something in the web.xml file like this: but this does not work:
<error-page> <error-code>404</error-code> <location>/public/setup.jsp</location> </error-page>
Decision:
I start with the default web.xml file and after the installation is complete, I replace web.xml with the correct web.xml โapplicationโ. Due to the replacement of web.xml, the server is rebooting. This works great. Thanks again for your answers.
source share