spring+ibatis+struts2+tiles+smartclient
由于稳定压倒一切的原则,若非客户指定,还是用回 struts2,虽然感觉 spring mvc +tiles 比较爽,但学习成本暂时没有的。
struts 配置的时候明显没有 spring mvc 爽,必须将 struts.xml 放在 classes 下面,里面的引用 import 都需要放在同一目录下,虽然有途径可以修改位置,但终究没实践成功,也不想再浪费时间在这上面。
tiles 的配置文件可以修改位置,可是又不能象 springmvc 中一样使用通配符 * , 也是比较麻烦。
rapid 的这种配置不错。struts.xml 中部份。直接在浏览器中用 /pages/UserInfo/show.do?userId=1
<!-- 修改为你自己的namespace -->
<package name="default" namespace="/pages" extends="custom-default">
<!-- 通过URL访问的路径是 /namesapce/Entity/method.do -->
<action name="*/*" method="{2}" class="com.company.project.action.{1}Action">
<result name="*" type="direct">通过Action直接返回,这一行无需修改</result>
</action>
</package>
这种方式也能访问jsp , 但没有经过 action class, 有点没整明白。
struts.xml
<package name="userinfo" extends="tiles-default" namespace="/userinfo">
<default-action-ref name="index"/>
<action name="*">
<result type="tiles">userinfo/*</result>
</action>
</package>
====================
tiles-defs.xml
<definition name="userinfo/*" extends="StandardTemplate">
<put-attribute name="body" value="/WEB-INF/services-uum/pages/{1}.jsp" />
</definition>
分享到:
相关推荐
or1200 openrisc-arch-1.0-rev0.pdf
cacti-plugin-arch-2.0.tar.gz
Processor Arch-Sequential
UPnP arch Device architecture v1.1.pdf 2008年的1.1版本。
基于android8.1源码平台中生成的jar,亲测可用!!!!
安装 Arch-Manjaro + KDE Plasma + Windows 11 双系统的指南.zip
藏经阁-Distributed-Frontend-Arch--Ahmad Amireh.pdf
Arch-JL-10-4in1.pdf
变系数ARCH-M模型的ARCH效应检验,熊强, 李元,本文考虑变系数ARCH-M模型, 构造了非参数部分和参数部分的截面似然估计. 基于估计的渐近性质, 构造了Wald检验统计量来检验模型是否具�
arch-for-sync-groupware-tr1999-425
+----------+ +-----------+ +------------+ +------------+ | head10 | | work11 | | work12 | | work13 | | (master) | | (worker) | | (worker) | | (worker) | +----+-----+ +-----+-----+ +-----+------+ +---...
python库。 资源全名:arch-4.8.0-cp27-cp27m-win32.whl
NULL 博文链接:https://cnmqw.iteye.com/blog/1243596
下午1_Intel_Yang, Elton_MeeGo-Arch-Update-Final.pdf
资源来自pypi官网。 资源全名:arch-4.17-cp39-cp39-manylinux1_x86_64.whl
UPnP-arch-DeviceArchitecture-v2.0 最新的UPNP协议规范
python库,解压后可用。 资源全名:arch-4.11-cp35-cp35m-win32.whl
资源来自pypi官网。 资源全名:arch-4.9.1-cp36-cp36m-macosx_10_6_intel.whl
arch-model-estimation_solution.ipynb
Next Generation On Demand (NGOD) Asset Architecture Comcast-SP-NGOD-ASSET-ARCH-I03-100731 Issued July 31, 2010