【问题标题】:FlashScope.getCurrent(...) always returns new FlashScope instanceFlashScope.getCurrent(...) 总是返回新的 FlashScope 实例
【发布时间】:2010-10-14 15:36:37
【问题描述】:

应用程序基于 Stripes 和 Spring。每次我调用 FlashScope.getCurrent(..) 方法时,都会返回 FlashScope 的新干净实例。虽然如果我调用FlashScope.getAllFlashScopes(..),我会得到一个带有 FlashScope 的数组,该数组在之前的请求中被实例化,并且包含我存储在那里的所有参数。对这个麻烦的原因有什么想法吗?

【问题讨论】:

  • FlashScope 机制通过附加一个额外参数来重定向 URL 来工作。你到底在做什么用闪光灯范围?您从创建范围的操作中返回什么样的解决方案?它应该是一个 RedirectResolution。
  • 是的,我使用了 RedirectResolution。我的目的只是将参数存储在 FlashScope 中,我按照手册中的说明实现了它 (stripesframework.org/display/stripes/State+Management)。

标签: java web-applications stripes


【解决方案1】:

您可能想在以下网站上问这个非常具体的 Stripes 问题:

stripes-users@lists.sourceforge.net 邮件列表

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-09
    相关资源
    最近更新 更多