用了webwork
velocity
在.vm文件中有如下代码
$req.setAttribute("rstlist", $qryRstList)
#bodytag( Table "name=rstlist" "width=100%" "class=sortableTable" "sort=list" "cellpadding=$!{tblcellpadding}" "decorator=com.ka.util.DepositDecorator")
#tag( Column "property=minamountbyinst" "title=金额" "width=7%" "sortable=true" "headerClass=trtablehead" )
#tag( Column "property=modifyLink" "align=right" "title=操作" "width=5%" "href=limitAction.action?opId=limitmdy" "paramId=limit.code" "paramProperty=code" ) 红色部分在部署后解析出来如下,没有超链接(就是超级链接部分好像没有被解析)
<td width="5%" align="right">编辑 </td> </tr> java文件
package com.ka.util; import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.PropertyUtils;
import org.displaytag.decorator.TableDecorator;
import org.displaytag.exception.DecoratorException; public class DepositDecorator extends TableDecorator { public String getDetailLink() {
return "详细";
} public String getModifyLink() {
return "编辑";
}
} 我把这个应用打成.war文件发布到两台机器上(操作系统与服务器相同)
操作系统 linux red hat
服务器 websphere 6.1
其中一台机器的解析是正常的。“编辑”这个超级链接是可用的,另一台就出现上面的问题tag标签解析不完。 是什么导致这个问题呢?
是有什么配置,或环境问题吗?
velocity
在.vm文件中有如下代码
$req.setAttribute("rstlist", $qryRstList)
#bodytag( Table "name=rstlist" "width=100%" "class=sortableTable" "sort=list" "cellpadding=$!{tblcellpadding}" "decorator=com.ka.util.DepositDecorator")
#tag( Column "property=minamountbyinst" "title=金额" "width=7%" "sortable=true" "headerClass=trtablehead" )
#tag( Column "property=modifyLink" "align=right" "title=操作" "width=5%" "href=limitAction.action?opId=limitmdy" "paramId=limit.code" "paramProperty=code" ) 红色部分在部署后解析出来如下,没有超链接(就是超级链接部分好像没有被解析)
<td width="5%" align="right">编辑 </td> </tr> java文件
package com.ka.util; import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.PropertyUtils;
import org.displaytag.decorator.TableDecorator;
import org.displaytag.exception.DecoratorException; public class DepositDecorator extends TableDecorator { public String getDetailLink() {
return "详细";
} public String getModifyLink() {
return "编辑";
}
} 我把这个应用打成.war文件发布到两台机器上(操作系统与服务器相同)
操作系统 linux red hat
服务器 websphere 6.1
其中一台机器的解析是正常的。“编辑”这个超级链接是可用的,另一台就出现上面的问题tag标签解析不完。 是什么导致这个问题呢?
是有什么配置,或环境问题吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货