i'm using struts 2(version 2.3.30), jdk 8, tomcat 10, (jakarta).
Getting the errors while using
HttpServletResponse response = ServletActionContext.getResponse();
eventually, this is using import org.apache.struts2.ServletActionContext which I belive is causing the error
Multiple markers at this line
- The method getResponse() from the type ServletActionContext refers to the missing type HttpServletResponse
- The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required .class files
- The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required type org.apache.struts2.ServletActionContext
I tried using Jakarta plugin "https://github.com/apache/struts-extras/blob/master/struts2-secure-jakarta-multipart-parser-plugin/README.md" but didn't able to resolve I'm currently upgrading my project to tomcat 10 and jdk 8 from tomcat 7 and jdk 7.