練功房推薦書單

  • 猛虎出柙雙劍合璧版--最新 OCA / OCP Java SE 7 Programmer 專業認證 (電子書)
  • 流浪教師存零股存到3000萬(全新增修版)(書+DVD)
  • 開始在關西自助旅行(京都‧大阪‧神戶‧奈良)(全新增訂版)
  • 不敗教主的300張股票存股術

lpi.userId是什么 RSS feed
Forum Index » JForum中文社群 JForum Chinese Users Community
Author Message
g7235723

十級學員

Joined: Oct 7, 2008
Messages: 3
Offline
请问在论坛列表里forum_list.htm
lpi.userId
${lpi.username}是在哪里定义的?
andowson

七段學員
[Avatar]

Joined: Jan 2, 2007
Messages: 727
Location: 台北
Offline
lpi是一個net.jforum.entities.LastPostInfo類別的物件,包含底下幾個符合JavaBean定義的屬性(properties):
postTimeMillis
topicId
postId
userId
topicReplies
username
postDate
hasInfo

JForum使用FreeMarker作為template engine,所以,我們可以透過lpi.userId來呼叫LastPostInfo的getUserId()來取得某個版面最後發表的文章資訊。

您可以參考此篇JForum Eclipse WTP開發環境設定來建立您的JForum開發環境,對於原始碼的追蹤就會變得很容易。

參考資料:
http://freemarker.org/docs/pgui_quickstart_createdatamodel.html

分享經驗 累積智慧
[WWW]
 
Forum Index » JForum中文社群 JForum Chinese Users Community
Go to:   
Mobile view