首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

struts2 注脚参数配置

2012-08-24 
struts2 注解参数配置author 刘庆@Date 2010-10-2??package nameuserinfo namespace/userinfo exte

struts2 注解参数配置

author 刘庆

@Date 2010-10-2

?

?

<package name="userinfo" namespace="/userinfo" extends="reportsystem">        <action name="userInfoAction_*" method="{1}">             <result name="list">/userinfo/userinfo_list.jsp</result>        </action>    </package>        <package name="tree" namespace="/organization/subOrg" extends="reportsystem">        <action name="treeAction_*" method="{1}">             <result name="success" type="stream">                 <param name="contentType">text/html;charset=UTF-8</param>                 <param name="inputName">json</param>             </result>        </action>    </package>

?

?

java 注解

因为参数是才用键值对的型式存在的

{key1,value1,key2,value2}

?

@Namespace("/organization/subOrg")@ParentPackage("reportsystem")public class ClazzName.................................@Action(value="treeAction_subOrg",results={@Result(name=SUCCESS,type="stream",params={"contentType","text/html;charset=UTF-8","inputName","json"})})public String methodName() {
?

?

struts2 s:text 的使用

<s:text name="format.bigDecimal">                <s:param value="otherInfo.rjnsr" />            </s:text>
?operation.delete.title=操作
operation.delete.context=确认一定要删除吗?operation.delete.fail.context=操作失败operation.delete.successful.context=操作成功format.number = {0,number,###,###.##%}format.integer= {0,number,###}format.discount = {0,number,###.#######%}format.bigDecimal = {0,number,###,###.##}#format format.double = {0,number,##0.00}#invalid tokenstruts.messages.invalid.token=禁止重复提交,需要重新打开此页面
?

?

热点排行