It is actually very easy to use Spring in JSP, mainly using Spring's WebApplicationContextUtils.getWebApplicationContext function.
To get the ApplicationContext in JSP you need to do this.
first
import="org.springframework.web.context.support.*,org.springframework.context.*"
Then you can do this:
ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
In this way, you get the ApplicationContext and you can operate it. Spring.
JSP can be considered a Servlet, so using getServletContext() is a matter of course.