struts2标签与freemarker标签--语法区别 下载本文

<#assign sysCertItem_edit=answer />

4、二级权限标签

struts2:

freemarker:

<#assign alterOrder_edit=false />

<@bizPermissionbizId=\permissionCode=\ <#assign alterOrder_edit=answer />

5、日期标签

struts2:

freemarker:

<@token/>

6、上传标签

struts2:

<@fileUploadbizId=\

7、json

struts2:

标签

freemarker:

<@json value='contractBill'/>

8、查询页标签

struts2:

code='@com.hz.pmes.mp.certificate.constant.CertificateConstant@QUERYSCHEME_CODE' dbType='dbType' actionExtension='\

freemarker:

<@queryScheme

code=\nt@QUERYSCHEME_CODE')}\actionExtension=\

9、获取项目属性对象

struts2:

value='getProjProperty(@com.hz.pmes.pm.projproperty.constant.ProjPropertyConstant@ALLOWED_OVER_MIDDLEPAY,

@com.hz.pmes.pm.projproperty.constant.ProjPropertyConstant@ALLOWED_OVER_MIDDLEPAY_TRUE)'/>

\

test='#projProperty.ptValue.equals(@com.hz.pmes.pm.projproperty.constant.ProjPropertyConstant@ALLOWED_OVER_MIDDLEPAY_TRUE)'>checked>允许超计

D_OVER_MIDDLEPAY_FALSE'/>\

test='#projProperty.ptValue.equals(@com.hz.pmes.pm.projproperty.constant.ProjPropertyConstant@ALLOWED_OVER_MIDDLEPAY_FALSE)'>checked>不允许超计

\

\ \

freemarker:

<@pmesProjProperty buildProjId=\buildProjId?if_exists}\

ptName=\yConstant@ALLOWED_OVER_MIDDLEPAY')}\

defaultPValue=\opertyConstant@ALLOWED_OVER_MIDDLEPAY_TRUE')}\