---
title: "struts2 标签调用静态方法及参数传递"
author: "harbey"
date: "2009-07-28T15:05:32Z"
tags: []
slug: "struts2"
draft: false
lastmod: "2009-07-28T15:05:32Z"
id: 434557
url: "https://harbey.iteye.com/blog/434557"
---

```java

										<s:set name="cancelURL" value="%{cancel}" />
										
										<s:if
											test="@package@isMatcher(#cancelURL)">
										</s:if>

```



其中@package为调用静态方法的完整类名，@isMatcher静态方法