like this:
<isEqual prepend="and" property="userDpt" compareValue="A">
and
</isEqual>
<isEqual prepend="and" property="userDpt" compareValue="B">
and
</isEqual>
<isNotNull prepend="and" property="userDpt"><![CDATA[(common sentence)]]></isNotNull>
<isEqual prepend="and" property="userDpt" compareValue="A">
and
</isEqual>
<isEqual prepend="and" property="userDpt" compareValue="B">
and
</isEqual>
<isNotNull prepend="and" property="userDpt"><![CDATA[(common sentence)]]></isNotNull>
解决方案 »
- Struts2:关于Action获取前台数组数据。
- SSH的配置问题,无语了 找不到错误
- 整合 flex+spring+hibernate tomcat启动报错 急!!
- 想做一个多站的教育行业的淘宝,求架构
- lucence 搜索引擎问题!
- 面试 关系系统设计
- Jackrabbit 的一个问题
- 用hbm2java创建源文件失败,提示原因...
- 在tomacat下出现http status 500错误,错误信息如下!望各位指点一下,找了一上午也没什么结果!多谢
- struts问题,在线急等,下载后不能返回response
- [求助]JDOM创建xml文档问题,请高手指点!
- ###知名外企高薪诚聘Senior Software Engineer, Tuxedo###
按你所說,那如果userDpt=='A'
會執行第一種情況,
因為同時它isNotNull,是不是也要執行你加的那段?這樣的話就不是我想要的了!
<isEqual prepend="and" property="userDpt" compareValue="A">
and
</isEqual>
<isEqual prepend="and" property="userDpt" compareValue="B">
and
</isEqual>
<isNotEqual prepend="and" property="userDpt" compareValue="A">
<isNotEqual prepend="and" property="userDpt" compareValue="B"><![CDATA[(common sentence)]]>
</isNotEqual>
</isNotEqual>