How to configure the jsp in the DD ?

We can configure the jsp in the DD also to hide the jsp from direct access and to initialize the init parameters also.

<web-app>
<servlet>
<servlet-name>myjsp</servlet-name>
<jsp-file>TestInit.jsp</jsp-file>
<init-param>
<param-name>email</param-name>
<param-value>bhabani.pattanayak@gmail.com</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>myjsp</servlet-name>
<url-pattren>testinit.do</url-pattern>
</servlet-mapping>
</web-app>

No comments:

Post a Comment