How to store variables in the jsp page scope with the spring 2.5.x framework?

This has compile errors.

import javax.servlet.jsp.PageContext;

@Override
public ModelAndView handleRequestInternal(HttpServletRequest request,
		HttpServletResponse response) throws Exception {
		
		PageContext pageContext;
		
		Object o = pageContext.getAttribute("com.mycompany.pageId");

Description Resource Path Location Type
The local variable pageContext may not have been initialized HwController.java /com.mycompany.monitoring.war/src/com/mycompany/monitoring/war line 59 Java Problem

What is the proper way to initialize pageContext?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.