主题 : 截取字符串问题 |
级别: 贡士
![]() |
1# 发表于:2015-01-14 10:40:00 IP:42.14.*.*
|
||||
---|---|---|---|---|---|
级别: 总版主
![]() |
5# 发表于:2015-01-14 11:29:27 IP:182.14.*.*
取的到您用那标签获取下,你那标签肯定是获取不到内容的,内容是${txt!}获取 |
||
---|---|---|---|
级别: 贡士
![]() |
6# 发表于:2015-01-14 11:36:00 IP:42.14.*.*
回复第5楼 截取呢。麻烦您把截取的那行写下,其实${a.txt}我已经获取到内容了。但是就是加上截取,内容就没了。
|
||
---|---|---|---|
级别: 贡士
![]() |
10# 发表于:2015-01-14 12:21:40 IP:42.14.*.*
回复第9楼FreeMarker template error: The following has evaluated to null or missing: ==> a.text [in template "WEB-INF/t/cms/www/default/index/index.html" at line 202, column 54] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (FTL stack trace): ---------- ==> ${a.text} [in template "WEB-INF/t/cms/www/default/index/index.html"
|
||
---|---|---|---|