Is there a generic RequestContext in Java servlet API?

后端 未结 2 1316
感情败类
感情败类 2021-02-13 09:43

(I\'m not sure exactly how to phrase the title here, and because of that I\'m not really sure how to go about searching for the answer either.)

I have a Java se

2条回答
  •  一生所求
    2021-02-13 09:58

    You can attach an object to the current request with setAttribute. This API is primarily used for internal routing, but it's safe to use for your own purposes too, as long as you use a proper namespace for your attribute names.

提交回复
热议问题