How to access JSP implicit objects like (request , response) in Java

后端 未结 3 1718
南方客
南方客 2021-01-23 15:03

How to pass JSP implicit objects like (request, response) in Java. I want to access JSP Implicit Objects in Java code. Please suggest how to achieve this?

My Jav

3条回答
  •  礼貌的吻别
    2021-01-23 15:56

    IMO I don't think it is possible to pass implicit objects directly to java class so but one thing you can do is pass session and request object from servlet to a java class either in some method or in constructor of java class.

    Also see this question

提交回复
热议问题