我想做个多文件上传的功能,了解到AlanXUpload控件很方便就想试试,但是报错了,,,
在网上下载了一个demo,导入到MyEclipse中,因为需要用到这个功能的项目所在环境是weblogic8和JDK1.4的- -(请不要吐槽),所以我就把它部署到我本地的weblogic上了,但是报以下错误
/index.jsp(1): Could not parse deployment descriptor: org.xml.sax.SAXException: [HTTP:101248][ServletContext(id=13633191,name=AlanXTest,context-path=/AlanXTest)]: Deployment descriptor "/WEB-INF/AlanXUpload.tld" is malformed. Check against the DTD: XML document structures must start and end within the same entity. (line 109, column 1).
probably occurred due to an error in /index.jsp line 1:
<%@ taglib prefix="ax" uri="/WEB-INF/AlanXUpload.tld" %>
这是demo的源码
<%@ taglib prefix="ax" uri="/WEB-INF/AlanXUpload.tld" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<ax:head/>
</head>
<body>
<ax:body/>
</body>
</html>
之后我又把它放到tomcat上试了试,结果却是能正常运行,我不是很了解服务器这一块,希望有人帮帮我