Hello everyone my last post one small HelloWorld Example I am showed in the video. This just for awareness of the servlet based application. In the last I didn’t mention deployment descriptor information in that now I am trying to give here deployment descriptor types and what is the use of deployment descriptor.


                        Deployment Descriptor is a component in Java EE application that describes how a web application should be deployed. It is an xml file provided with each module of the application. It describes the configuration information for that module. It must e placed in WEB-INF directory, directly under the web application root. There are different kinds of deployment descriptor. Hey common I am giving these information into video while reading some people may not interest just simply relax and see video is enough that the reason I am giving here video why your late let see the video





Like that we can add the following information in deployment descriptor.
<servlet>
            <servlet-name>ShowRequestHeaders</servlet-name>
            <servlet-class> ShowRequestHeaders</servlet-class>
</servlet>
<servlet-mapping>
            <servlet-name> ShowRequestHeaders</servlet-name>
            <url-pattern>/req</url-pattern>
</servlet-mapping>
</web-app>
Add more number of deployment descriptor elements while using EJB in the application.

Next post on Request and Response Headers…………….

Post a Comment

 
Top