I created a simple web application in Netbeans, a file named WebApplication1 has been created, which is By default NetBIn, if you do not create a project with any additional frameworks, no deployment No descriptor (web.xml) has been provided. To change this, right-click on the project and select Now edit and set up web.xml to replace newjsp.jsp by default UPDATE Clearly for Tomcat. .. If any web. Is not available in the XML application, then default web. XML ($ CATALINA_HOME / conf / web.xml) tomcat application is supplied. The following descriptors of this deployment descriptor are: This is the reason that index.jsp is shown by default index.jsp has been named. When I run the app, the browser goes to
index.jsp . Nothing in the project is mentioned as the welcome page, so how is it happening? I checked the build.xml, glassfish-web.xml and all the XML, supporting files in the nbproject folder, but there is no mention of
index.jsp . How is it taking?
New & gt; Other & gt; Web & gt; Standard Deployment Descriptor (web.xml)
& lt ;! - - & gt; & Lt ;! - If you have web of your own application XML - & gt; Let's define welcome files in & lt ;! - Deployment descriptor, list of that list * is configured - & gt; & Lt ;! - Here, so be sure to include any default value - & gt; & Lt ;! - To use within your application - & gt; & Lt; Welcome-file-list & gt; & Lt; Welcome-file & gt; Index.html & lt; / Welcome-file & gt; & Lt; Welcome-file & gt; Index.htm & lt; / Welcome-file & gt; & Lt; Welcome-file & gt; Index.jsp & lt; / Welcome-file & gt; & Lt; / Welcome-file-list & gt;
No comments:
Post a Comment