Struts2

Prepare Interceptorの使いどころ

http://struts.apache.org/2.x/docs/prepare-interceptor.html action methodの事前処理としてprepare() methodやprepare{MethodName}() methodを呼べる と言われても今一使い勝手が分からなかったが、 これがinterceptorであり、 interceptorはinterceptor-…

Velocity用Eclipse plugin・Veloeclipseの導入とStruts2対応

Velocity用Eclipse plugin VelocityのtemplateをEclipseで編集したいので探してみた。 ↓を入れるだけ de.veloeclipse.update ユーザー・ディレクティブ対応 VeloeclipseはHTMLタグやディレクティブの入力補完に対応し、 ブロック・ディレクティブの閉じ漏れを…

Struts2+Velocityでのカスタムタグ拡張の初歩

Struts2のカスタムタグ Struts2では様々なカスタムタグが用意されていて、 しかも、それらはJSP・FreeMarker・Velocityの3つのテンプレートエンジンで使える。 詳しくは、http://struts.apache.org/2.x/docs/tag-developers-guide.htmlらへん参照。 例えばfo…