Reputation: 2802
I'm create one maven web application. In web.xml there is one tag named is <icon>
.
what is use case and how to use <icon>
tag in my web application ?
please help me.
Web.xml :-
<?xml version="1.0" encoding="UTF-8"?><web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<icon>
<small-icon>image/iconSmall.gif</small-icon>
</icon>
<!-- ************ Servlet Declaration *************** -->
<servlet>
<servlet-name>MyFirstServlet</servlet-name>
<servlet-class>com.example.servlet.MyFirstServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MyFirstServlet</servlet-name>
<url-pattern>/MyFirstServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
Upvotes: 0
Views: 2968
Reputation: 647
icon element speicifes small and large image used to represent web application in GUI tool. size is 16x16 px and size is 32x32 pixel . File type should be .gif or .jpg
Ref : http://docs.oracle.com/cd/E11035_01/wls100/webapp/web_xml.html#wp1070143
Upvotes: 1