关于Translation failed for content-type:text/vnd.wap.wml的解决方法
2005-04-14 12:54
405 查看
在使用openwave4.1时,有如下的错误:
Translation failed for content-type:text/vnd.wap.wml
原文件是按如下方式写的:
<%@ page contentType="text/vnd.wap.wml;charset=gb2312"%>
<%@include file="/inc/inc.jsp"%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card>
...
</card>
</wml>
以上代码使用手机,openwave6.2.2,m3gate都是可以浏览的,但使用openwave4时就会有问题
经过反复试验及网上搜索信息,代码的书写方式如下:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml;charset=gb2312"%>
<%@include file="/inc/inc.jsp"%>
<wml>
<card>
...
</card>
</wml>
真会有许多意想不到的事会发生,对于wap开发程序员来人,很小的一个问题就会花掉许多时间
Translation failed for content-type:text/vnd.wap.wml
原文件是按如下方式写的:
<%@ page contentType="text/vnd.wap.wml;charset=gb2312"%>
<%@include file="/inc/inc.jsp"%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card>
...
</card>
</wml>
以上代码使用手机,openwave6.2.2,m3gate都是可以浏览的,但使用openwave4时就会有问题
经过反复试验及网上搜索信息,代码的书写方式如下:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%@ page contentType="text/vnd.wap.wml;charset=gb2312"%>
<%@include file="/inc/inc.jsp"%>
<wml>
<card>
...
</card>
</wml>
真会有许多意想不到的事会发生,对于wap开发程序员来人,很小的一个问题就会花掉许多时间
相关文章推荐
- AFNetworking 2.0 获取json数据时,返回 NSLocalizedDescription=Request failed: unacceptable content-type: text/html, 解决方法.
- The method getTextContent() is undefined for the type Node解决方法(eclipse)
- NSLocalizedDescription=Request failed: unacceptable content-type: text/html 解决方法
- NSLocalizedDescription=Request failed: unacceptable content-type: text/html 解决方法
- 再次揭露text/vnd.wap.wml引起的ASP.NET OutputCache Bug及解决方法
- asp.net网站,打开网站,提示下载网页解决方法(未知文件类型、text/vnd.wap.wml)
- AFNetworking2.0请求数据时出现错误Requestfailed:unacceptablecontent-type:text/html解决方法
- 再次揭露text/vnd.wap.wml引起的ASP.NET OutputCache Bug及解决方法
- The method getTextContent() is undefined for the type Node 的解决办法(eclipse)
- 关于APUE第十六章的客户端程序返回Servname not supported for ai_socktype错误的解决方法
- The method getTextContent() is undefined for the type Node 错误解决办法
- AFNetWorking 请求数据报”Request failed: unacceptable content-type: text/plain” 错误解决方法
- AFNetworking不支持text/plain,错误解决方法"Request failed: unacceptable content-type: text
- Eclipse常见问题解决 - The method getTextContent() is undefined for the type Node.
- response.setContentType("text/html;charset=utf-8")后依然乱码的解决方法
- 关于android Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.的解决方法
- 关于android Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.的解决方法
- AFNetWorking 请求数据报”Request failed: unacceptable content-type: text/plain” 错误解决方法
- hibernate中对于数据库的Text注解出现 No Dialect mapping for JDBC type: -1解决方法
- 关于解决android studio出现Error:Execution failed for task ':app:mergeDebugResources'. 的方法