⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web.xml

📁 webcam written by others that is using JMF to capture the screen to the browser using java applet an
💻 XML
字号:
<!DOCTYPE web-app 
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<!-- 

  ALL EXAMPLES OF CODE AND/OR COMMAND-LINE INSTRUCTIONS ARE BEING 
  PROVIDED BY SUN AS A COURTESY, "AS IS," AND SUN DISCLAIMS ANY AND 
  ALL WARRANTIES PERTAINING THERETO, INCLUDING ANY WARRANTIES OF 
  MERCHANTABILTY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 
  SUN IS NOT LICENSING THIS EXAMPLE FOR ANY USE OTHER THAN FOR THE
  EDUCATIONAL PURPOSE OF SHOWING THE FUNCTIONALITY CONTAINED
  THEREIN, BY WAY OF EXAMPLE.
 -->

<web-app>
  <display-name>Web Cam Image Servlet</display-name>
  <description>
    This servlet retrieves an image from a webcam connected to the server
    and sends it to the client browser in JPEG format
  </description>

  <context-param>
    <param-name>videoconfigfile</param-name>
    <param-value>C:\Apache\Tomcat 5.5\webapps\WebCamServlet\video.properties</param-value>
    <description>
      This parameter can be used to provide the name of a video
      configuration properties file that will be used by the libraries 
      to determine the name of the device to use, the resolution of the 
      image and the colour depth
    </description>
  </context-param>

  <servlet>
    <servlet-name>WebCamServlet</servlet-name>
    <servlet-class>WebCamServlet</servlet-class>
    <description>
      The JMF based webcam image servlet
    </description>
  </servlet>

  <!--  Servlet name mapping to be used in the URL  -->
  <servlet-mapping>
    <servlet-name>WebCamServlet</servlet-name>
    <url-pattern>/webcam</url-pattern>
  </servlet-mapping>
</web-app>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -