Posted on 2007-04-02 22:51
pts 閱讀(286)
評論(0) 編輯 收藏 所屬分類:
Java
1、jsp文件中<%@ taglib prefix="s"
uri="/struts-tags" %>,這里不是url,并將eclipse默認(rèn)的頁面語言為java行去掉。
2、昨天才發(fā)現(xiàn)eclipse 官方網(wǎng)站上有WDT的all in one版本,用到現(xiàn)在發(fā)現(xiàn)真是很不錯(cuò),如果打開項(xiàng)目的自動編譯功能,選擇project name,run as-->run on server,配置好tomcat,啟動server。如果你修改了action的java文件,server會自動重啟并同步,真的很棒!
3、在“使用action”一節(jié)中,使用result type=velocity時(shí),需要添加的lib不止列出的,總共用到:
avalon-logkit-2.2.1.jarcommons-collections-3.2.jarcommons-digester-1.8.jarcommons-lang-2.3.jarvelocity-1.5.jarvelocity-tools-view-1.2.jar其中digester、lang包是沒有提到的。
很感謝
max提供的struts2系列文章,講的水平很高。
Powered by ScribeFire.