The BOM of unicode file in Freemarker's directive "include" made me crazy

原创 2006年06月26日 14:32:00
Just now, I was adding a navigation to our "jstore for moliyo" web project using a derective "include" as this:
...
<body style="margin:0px;padding:0px;">
<#include "navigation.html">
...
</body>
...

the file "navigation.html" is a unicode file with a BOM:
<table><tr><td>some other words.</td></tr></table>

but a line break was displayed in Microsoft Internet Explorer, but not in Mozilla Firefox.

I'd tried hard to delete the line break, but failed.

I was crazying...

But when I saved the file "navigation.html" with no BOM, the line break was fucked off in IE.

I thought this is a bug of freemarker and I'd reportted it in the sf.net.

I'd downloaded its source from the CVS repository and attempted to find the bugged code, but nothing I found.

Well, I should go back for bed, I'm sneezing as I've caught a cold last weekeed.

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

"Android SDK and AVD Manager" cannot be made visible because all of its children are in unavailable

"Android SDK and AVD Manager" cannot be made visible because all of its children are in unavailable ...

unexpected end of file while looking for precompiled header directive 解决办法

右键点工程名,选设置,然后选c/c++属性页,再选catagory选单中选 precompiled header ,将选项置成no use 或者autometic ---------转载的文章----...

GOOD_JSTL配置问题:According to TLD or attribute directive in tag file

http://blog.csdn.net/xiaofei14/article/details/4091577 JSTL配置问题:According to TLD or attribute dire...
  • Baple
  • Baple
  • 2015-03-27 16:33
  • 623

解决:According to TLD or attribute directive in tag file, attribute value does not accept any express。

背景:在mysql中有一个字段声明为datetime类型,在用hibernate映射时对应的类型为java.util.Date。因此从数据库中读出来,在前台jsp页面显示时,日期格式为年月日,时分秒,...

According to TLD or attribute directive in tag file, attribute items does not accept any expression

今天在使用JSTL的时遇到一个错误,如下 According to TLD or attribute directive in tag file, attribute items does...

According to TLD or attribute directive in tag file异常

抛出According to TLD or attribute directive in tag file异常如下: 异常的原因是不能识别“${userInfo}”,解决办法: 一、在page指令...

According to TLD or attribute directive in tag file, attribute value does not accept any expressions

环境: win2003 tomcat 5.5 JDK1.6上   xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi=http://ww...

According to TLD or attribute directive in tag file, attribute value does not accept any expressions

1、错误描述 2014-7-13 17:27:21 org.apache.jasper.compiler.TldLocationsCache tldScanJar 信息: At least one J...

TypeError: view must be a callable or a list/tuple in the case of include().

django1.10版本对views视图函数的调整变化使用 TypeError: view must be a callable or a list/tuple in the case of incl...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)