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.

In Praise of the #Error Directive

  • 2009年10月13日 14:03
  • 80KB
  • 下载

"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 ...
  • jhjyear
  • jhjyear
  • 2015年01月28日 09:00
  • 4417

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
  • 684

解决: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...

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...

Android SDK低版本切换高版本错误 Error:The number of method references in a .dex file cannot exceed 64K.

我们都知道app里面的方法数是有限制的差不多64000个,具体就为曾考证了 在遇到这个问题之前,一直以为这是一件多么遥远的事情,其实并不是的,稍有不慎这个异常出来了 也有可能并不是你真的有编写...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:The BOM of unicode file in Freemarker's directive "include" made me crazy
举报原因:
原因补充:

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