I have my web application deployed on WebSphere Application server 6.0 ,which is running fine.Now my task is to move the web application to tomcat 5.5(also included JDK 1.4 compatibility package), as the code is compiled using jdk 1.4.In one of the tag files , i have used jsp implicit object 'pageContext' , which is giving error.
Error in tomcat:
org.apache.jasper.JasperException: Unable to compile class for JSP:
pageContext cannot be resolved
59: <!-- Scripts -->
60: <%= nextgen.webui.framework.aggregator.IncludeController.createJSDeclarations((HttpServletRequest)request,pageContext.getServletContext()) %>
I have been searching for any suggestions in Google ,but remained clueless.Any help would be greatly appreciated.
Unfortunately "pageContext" is not available as an implicit variable in tag files. You *do* have access to "jspContext", which implements the parent class of PageContext, however I'm afraid this isn't an option for you in this situation, as getServletContext() is not available in jspContext. You might try instead to put this code in a JSP snippet that you pull into your JSP with a <jsp:include>