【问题标题】:Struts2 action from Servlet来自 Servlet 的 Struts2 动作
【发布时间】:2011-03-16 13:19:37
【问题描述】:

我在 Struts2 中使用 Servlet。一旦 Servlet 中的过程完成,我需要调用 Struts2 操作。我在我的 struts.xml 中使用<constant name="struts.action.excludePattern" value="/myServlet"/>。如何从我的 Servlet 调用 Strtus2 操作?

【问题讨论】:

  • 您在 struts2 应用程序中使用的 Servlet 是什么?
  • 已解决:在 web.xml 中添加了 REQUESTFORWARD

标签: servlets struts2


【解决方案1】:

已解决:在 web.xml 中添加 <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher>

【讨论】:

  • 如果解决了您的问题,请在此答案上打上正确标记
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-01-12
  • 2016-09-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多