易截截图软件、单文件、免安装、纯绿色、仅160KB

关于flex和spring+hibernate整合web.xml的错误

flex和spring+hibernate整合完成后web.XML出现如下错误
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". MyBlog/WebRoot/WEB-INF web.xml line 3 
解决方法
检查你web.xml中<context-param>和<listener>标记的顺序是否放在<servlet>之前,没有拷贝放在<servlet>标记前
具体顺序可以参考错误信息中的顺序


相关文档:

flex学习 自定义事件

我个人觉得这个自定义时间封装性很好,但是有点复杂,不建议简单编程中使用
创建一个MXML组件,建自定义事件
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
private function clickHandler():void{
// var m ......

flex学习 flex读取xml文件

源xml文件
 <?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people ......

XML 的转移字符


和           &      & amp;  

引号     '      & apos;  
双引
号     "   ......

JS解析XML文件和字符串的跨浏览器实现


大多数浏览器都内建了供读取和操作 XML 的 XML 解析器。
解析器把 XML 转换为 JavaScript 可存取的对象。
但是IE和其它浏览器是有很大区别的
解析 XML 文件 - 跨浏览器实现
<html>
<body>
<mce:script type="text/javascript"><!--
try //针对IE和基于IE内核的浏览器
{
xmlD ......

Flex Autocomplete组件的使用实例

测试文件代码如下:导入com.hillelcoren.components包
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
 xmlns:mx="http://www.adobe.com/2006/mxml"
 xmlns:hc="com.hillelcoren.components.*"
 xmlns:classes="com.hillelcoren.components.autoComplete.classes.*"
 xmlns:l ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号