I have developed one simple web application using spring, by getting the code from the internet. But when I start the application, the welcome file is not being loaded at all. Request you to please help me to resolve this issue. Even though my spring context file name is dispatcher-servlet.xml, I am getting the below weird exception.
The above listener code searches for a file named applicationContext.xml.. Also, we can initialize other files using the context-param.
You tell when you start the application, welcome page is not loaded at all, this means what you get in browser/server, 404 exception or what? please TelltheDetails.
Just noticed this now, you can't directly access jsp's inside WEB-INF, so only we keep jsp inside WEB-INF, so its secure.. take the redirect.jsp out and put in WebContent. Also, post that redirect.jsp and also post the server logs when the application is deployed.
Where are you setting your commandClass, in dispatcher-servlet.xml or controller.. in dispatcher-servlet.xml i see them commented..
If you are setting in controller class can you post them here..
If no, uncomment these two line from your dispatcher-servlet.xml