点击(此处)折叠或打开

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Function</title>
  6. </head>

  7. <body>

  8.     <script type="text/javascript" src="demo.js"></script>
  9. </body>
  10. </html>

事件:
//鼠标事件:onclick ondbclick onmousedown onmouseup onmouseover onmouseleave onmousemove
//键盘事件:onkeydown onkeypress onkeypress
//文本框事件:onselect onchange onfocus onblur
//form事件:onsubmit onreset
//window事件:onresize onscroll


struts.xml
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE struts PUBLIC
  3.     "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
  4.     "http://struts.apache.org/dtds/struts-2.3.dtd">

  5. <struts>

  6. </struts>

web.xml

  1. <filter>
  2.         <filter-name>struts2</filter-name>
  3.         <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  4.     </filter>

  5.     <filter-mapping>
  6.         <filter-name>struts2</filter-name>
  7.         <url-pattern>/*</url-pattern>
  8.     </filter-mapping>




09-02 21:18