This week's book giveaways are in the Cloud and AI/ML forums. We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line! See this thread and this one for details.
I wrote a very simple application using Java, JSP and Servlets with Glassfish web server. I use the Eclipse IDE with its default directory structure. My directory structure is shown in the attachment. However if I run my webapp I see the link to my css in the browser view source window. But when I click on the link it navigates me to different URL than the one shown and throws me with a 404 file not found exception.
Yes. I am developing in Eclipse. Meanwhile is it necessary to have a <welcome-file> in you webapp? In my case my webapp root is being handled by a servlet. Based on the session, it redirects to the respective jsp page. My DD snippet is shown below
But when I try to use a welcome file (index.jsp) instead of handling through a servlet, the css works fine. It stops working when I bring in a servlet. All these happen in eclipse environment. Not sure if response.sendRedirect() would be the issue as well!