• <bdo id='J1pmC'></bdo><ul id='J1pmC'></ul>
  • <legend id='J1pmC'><style id='J1pmC'><dir id='J1pmC'><q id='J1pmC'></q></dir></style></legend>
    1. <tfoot id='J1pmC'></tfoot>
    2. <i id='J1pmC'><tr id='J1pmC'><dt id='J1pmC'><q id='J1pmC'><span id='J1pmC'><b id='J1pmC'><form id='J1pmC'><ins id='J1pmC'></ins><ul id='J1pmC'></ul><sub id='J1pmC'></sub></form><legend id='J1pmC'></legend><bdo id='J1pmC'><pre id='J1pmC'><center id='J1pmC'></center></pre></bdo></b><th id='J1pmC'></th></span></q></dt></tr></i><div id='J1pmC'><tfoot id='J1pmC'></tfoot><dl id='J1pmC'><fieldset id='J1pmC'></fieldset></dl></div>

    3. <small id='J1pmC'></small><noframes id='J1pmC'>

        在执行struts 2动作类时给出一个空的json结果

        Giving an empty json result while executing struts 2 action class(在执行struts 2动作类时给出一个空的json结果)
        <legend id='ckUyg'><style id='ckUyg'><dir id='ckUyg'><q id='ckUyg'></q></dir></style></legend>

            <i id='ckUyg'><tr id='ckUyg'><dt id='ckUyg'><q id='ckUyg'><span id='ckUyg'><b id='ckUyg'><form id='ckUyg'><ins id='ckUyg'></ins><ul id='ckUyg'></ul><sub id='ckUyg'></sub></form><legend id='ckUyg'></legend><bdo id='ckUyg'><pre id='ckUyg'><center id='ckUyg'></center></pre></bdo></b><th id='ckUyg'></th></span></q></dt></tr></i><div id='ckUyg'><tfoot id='ckUyg'></tfoot><dl id='ckUyg'><fieldset id='ckUyg'></fieldset></dl></div>
              <tbody id='ckUyg'></tbody>

              <bdo id='ckUyg'></bdo><ul id='ckUyg'></ul>
            • <tfoot id='ckUyg'></tfoot>

              <small id='ckUyg'></small><noframes id='ckUyg'>

                  本文介绍了在执行struts 2动作类时给出一个空的json结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用休眠 ORM 从数据库中检索数据,并使用 Struts2 将输出作为 json 结果.一切都可以从数据库中检索数据,但对于 json 结果,我只得到 {}.

                  我认为我的编码有问题.但是需要一些帮助才能弄清楚.

                  <块引用>

                  这是我的动作类:

                  @ParentPackage("json-default")公共类 SocialIconsAction 扩展 ActionSupport {私人列表<TiendayaCurrencies>_货币;公开列表<TiendayaCurrencies>获取货币(){返回_货币;}public void setCurrency(List<TiendayaCurrencies>_currency) {this._currency = _currency;}@Action(值 = "货币", 结果 = {@Result(name = "success", type = "json", params = {"includeProperties","_currency\[\d+\]\..*"})})@覆盖公共字符串执行(){_currency = loadCurrencies();/*数据库结果没有问题.只是为了测试一切正常.*///for (TiendayaCurrencies _currency1 : _currency) {//System.out.println("Title - "+_currency1.getTitle());/
                                  
                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                • <small id='EdjwK'></small><noframes id='EdjwK'>

                  <i id='EdjwK'><tr id='EdjwK'><dt id='EdjwK'><q id='EdjwK'><span id='EdjwK'><b id='EdjwK'><form id='EdjwK'><ins id='EdjwK'></ins><ul id='EdjwK'></ul><sub id='EdjwK'></sub></form><legend id='EdjwK'></legend><bdo id='EdjwK'><pre id='EdjwK'><center id='EdjwK'></center></pre></bdo></b><th id='EdjwK'></th></span></q></dt></tr></i><div id='EdjwK'><tfoot id='EdjwK'></tfoot><dl id='EdjwK'><fieldset id='EdjwK'></fieldset></dl></div>

                      • <bdo id='EdjwK'></bdo><ul id='EdjwK'></ul>
                          <tbody id='EdjwK'></tbody>

                          <tfoot id='EdjwK'></tfoot>
                          <legend id='EdjwK'><style id='EdjwK'><dir id='EdjwK'><q id='EdjwK'></q></dir></style></legend>