tomcat容器中开发的代码移植入weblogic
2010-06-29 15:31
211 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/jiang1904/article/details/83649301
在做项目过程中,在将tomcat容器中开发的代码移植入weblogic中发现了一些不兼容的问题。
1、项目中才用svg技术画图,在tomcat中的url是支持.svg结束的url的。但是一旦一直到weblogic中则不支持,
因此会报
错误信息:
操作成功完成。处理资源 'http://10.206.20.44:7001/demo/first.svg' 时出错。第 4 行,位置: 31
<svg width="400" height="300">
这样一个错误。
解决方法就是把svg文件加到一个jsp文件中。
使用<embed>标签支持显示,可解决此问题。
例子如下:
<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">
-->
</head>
<body>
<embed src="second.svg" width="300" height="100" type="image/svg+xml"
pluginspage="http://www.adobe.com/svg/viewer/install/" />
</body>
</html>
1、项目中才用svg技术画图,在tomcat中的url是支持.svg结束的url的。但是一旦一直到weblogic中则不支持,
因此会报
错误信息:
操作成功完成。处理资源 'http://10.206.20.44:7001/demo/first.svg' 时出错。第 4 行,位置: 31
<svg width="400" height="300">
这样一个错误。
解决方法就是把svg文件加到一个jsp文件中。
使用<embed>标签支持显示,可解决此问题。
例子如下:
<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">
-->
</head>
<body>
<embed src="second.svg" width="300" height="100" type="image/svg+xml"
pluginspage="http://www.adobe.com/svg/viewer/install/" />
</body>
</html>
相关文章推荐
- 搭建Eclipse3.2.2+MyEclipse5.5+Tomcat+Weblogic下的J2EE开发环境
- C#使用Xamarin开发可移植移动应用进阶篇(9.混淆代码,防止反编译)
- tomcat,Jboss,weblogic区别、容器的作用
- 几种常见web 容器比较 (tomcat、 jboss 、resin、 weblogic、 websphere、 glassfish)
- 微信小程序 开发之滑块视图容器(swiper)详解及实例代码
- tomcat、weblogic、jboss的区别,容器的作用
- tomcat向weblogic移植需要注意的问题
- tomcat开发的web项目部署到weblogic注意事项
- Tomcat向Weblogic移植的问题
- 读取项目src下等的配置文件,适合于weblogic,tomcat等多种不同的容器。
- Struts2.3+Spring2.5.6+JPA(Hibernate3)项目移植入WebLogic12容器,并整合入MyEclipse10 图文详解
- tomcat向weblogic移植需要注意的问题
- 项目抛弃Tomcat容器,用代码启动Tomcat插件
- C#使用Xamarin开发可移植移动应用进阶篇(9.混淆代码,防止反编译)
- tomcat移植到weblogic下问题小结
- 项目从tomcat移植到weblogic问题汇总
- web 容器比较 tomcat jboss resin weblogic websphere glassfish
- tomcat程序移植到weblogic下的问题,路径问题
- tomcat免重启随意更改java代码 提高开发效率
- weblogic容器通过JSP页面输出图片出现乱码Tomcat下却正常