【问题标题】:J2EE Servlet request forwarding (Oracle ATG)J2EE Servlet 请求转发 (Oracle ATG)
【发布时间】:2016-02-23 23:30:34
【问题描述】:

我正在开发 ATG,它是一个预言机产品。我的问题是,如果我收到来自客户端(浏览器)的 HTTPRequest。 j2EE 服务器将请求转发给 ATG,ATG 创建自定义 dynamohttpRequest。在这个阶段,我想更改上下文并再次调用服务器。我不能用 dynamoHttpRequest 做到这一点。

所以我打算生成一个新请求或将该请求作为 httpRequest 转发给服务。如何生成新请求或将请求从 servlet 转发到同一服务器。这将如何影响客户的会话。请求转发是否会影响客户端会话。

【问题讨论】:

    标签: servlets jakarta-ee httprequest atg-dynamo


    【解决方案1】:

    不确定为什么不能使用 DynamoHttpRequest,但可以在 RequestHandlingPipeline (/atg/dynamo/servlet/dafpipeline/DynamoHandler) 中添加自己的 Servlet

    看看这个:https://docs.oracle.com/cd/E23095_01/Platform.93/ATGProgGuide/html/s0807customizingarequesthandlingpipel01.html

    【讨论】:

      猜你喜欢
      • 2014-02-25
      • 1970-01-01
      • 2011-06-20
      • 2018-10-24
      • 2012-10-05
      • 1970-01-01
      • 1970-01-01
      • 2015-09-12
      • 1970-01-01
      相关资源
      最近更新 更多