[英]How to use <icon> in web.xml for Java web application?
I'm create one maven web application. 我创建一个Maven Web应用程序。 In web.xml there is one tag named is
<icon>
. 在web.xml中,有一个名为
<icon>
标签。
what is use case and how to use <icon>
tag in my web application ? 什么是用例?如何在我的Web应用程序中使用
<icon>
标记?
please help me. 请帮我。
Web.xml :- 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>
icon element speicifes small and large image used to represent web application in GUI tool. 图标元素,用于表示GUI工具中的Web应用程序的大小图像。 size is 16x16 px and size is 32x32 pixel .
大小为16x16像素,大小为32x32像素。 File type should be .gif or .jpg
文件类型应为.gif或.jpg
Ref : http://docs.oracle.com/cd/E11035_01/wls100/webapp/web_xml.html#wp1070143 参考: http : //docs.oracle.com/cd/E11035_01/wls100/webapp/web_xml.html#wp1070143
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.