主题 : freemark 库如何调用action
级别: 白丁
UID: 60
积分:20 加为好友
威望: 0 精华: 0
主题:4 回复:2
注册时间:2009-06-05
在线时长:0
1#   发表于:2009-06-05 10:51:12  IP:60.52.*.*
下面代码ArtiList 库调用了ArtiList 的action是吗?这是怎么调的呢?<@s.action name='ArtiList' namespace='/jeecms/tag/article' executeResult='true'
后面带的是参数吗?如:chnlId=chnlId attr=attr 等



<#macro ArtiList chnlId=chnl.id attr='' searchKey='' hasImg='0' recommend='0' topLevel='0' orderBy='0'
titLen='20' target='0' headMark='0' lineHeight='' bottomLine='0' ctgForm='0' ctgClass='' dateFormat='0' datePosition='1'
picWidth='24.9' picHeight='110'
rollDisplayHeight='28' rollLineHeight='28' rightPadding='20' rollCols='1' rollSpeed='1' isSleep='1' rollSleepTime='50' rollCount='1' rollSpan='1'
flashWidth='296' flashHeight='200' textHeight='20'
isPage='0' count='20' firstResult='0' pageNo=pageNo
style='1' inner='0' isLoop='1' cssClass='' cssStyle='' showLinkStyle='1'
sysTpl='1' sysContent='0' userContent='' sysPage='0' userPage='' upSolution='' upWebRes='' pageClass='' pageStyle='' custom=[]>
<#if inner=='0'>
<#local customs = ''>
<#list custom as s>
<#local customs = customs+s>
<#if s_has_next><#local customs = customs+'|'></#if>
</#list>
<@s.action name='ArtiList' namespace='/jeecms/tag/article' executeResult='true'
chnlId=chnlId attr=attr searchKey=searchKey hasImg=hasImg recommend=recommend topLevel=topLevel orderBy=orderBy
titLen=titLen target=target headMark=headMark lineHeight=lineHeight bottomLine=bottomLine ctgForm=ctgForm ctgClass=ctgClass dateFormat=dateFormat datePosition=datePosition
picWidth=picWidth picHeight=picHeight
rollDisplayHeight=rollDisplayHeight rollLineHeight=rollLineHeight rightPadding=rightPadding rollCols=rollCols rollSpeed=rollSpeed isSleep=isSleep rollSleepTime=rollSleepTime rollCount=rollCount rollSpan=rollSpan
flashWidth=flashWidth flashHeight=flashHeight textHeight=textHeight
isPage=isPage count=count firstResult=firstResult pageNo=pageNo
style=style cssClass=cssClass cssStyle=cssStyle showLinkStyle=showLinkStyle
sysTpl=sysTpl sysContent=sysContent userContent=userContent sysPage=sysPage userPage=userPage pageClass=pageClass pageStyle=pageStyle customs=customs
/>
<#else>
<@s.action name='ArtiListInner' namespace='/jeecms/tag/article' executeResult='false'
chnlId=chnlId searchKey=searchKey hasImg=hasImg recommend=recommend topLevel=topLevel orderBy=orderBy
isPage=isPage count=count firstResult=firstResult pageNo=pageNo
/>
<#if isLoop=='1'>
   <#list n_pagination.list as item>
<#nested item,item_index,item_has_next/>
</#list>
<#else>
<#nested n_pagination/>
</#if>
</#if>
</#macro>
级别: 白丁
UID: 31
积分:209 加为好友
威望: 0 精华: 0
主题:2 回复:167
注册时间:2009-06-03
在线时长:0
2#   发表于:2009-06-05 11:42:22  IP:59.138.*.*
这是标签调用action是struts2提供的功能,可以看看struts2的文档。
级别: 白丁
UID: 60
积分:20 加为好友
威望: 0 精华: 0
主题:4 回复:2
注册时间:2009-06-05
在线时长:0
3#   发表于:2009-06-08 14:13:00  IP:60.52.*.*
能不能提供下struts文档呢
级别: 白丁
UID: 31
积分:209 加为好友
威望: 0 精华: 0
主题:2 回复:167
注册时间:2009-06-03
在线时长:0
4#   发表于:2009-06-09 13:20:14  IP:59.139.*.*
struts2的文档中struts的官方网站上可以下载。struts.apache.org
1 共1页