I created two pages header.jsp and footer.jsp and tried to include them in the main.jsp .So that i could get a master page like effect . But i got a service not found error. I use netbeans and when i run the main.jsp alone i get the desired result. But if i try to run the project as a whole i get the http 404 service not found error.
Also i have set the start page as main.jsp in the properties of the project.
What url are you trying to access when you get the 404? Did you check the logs to see that the application actually deployed successfully?
P.S Consider looking at using jsp-config properties <include-prelude> and <include-coda> in the web.xml for including footers and headers.
Joined: May 30, 2012
There is no web.xml as there is no servlet used . There is only a sun-web.xml. I tried using context relative path and still the same error persists. I tried using html pages instead of jsp pages, but still no change in the error. My doubt is that the application is trying to load the start page as a page other than the main page. Where do i change that?
I changed the property by going to the properties of the current project .But still no change.