This content has been marked as final. Show 3 replies
Im not sure what you are trying to do here , where are you getting the NullPointerException?
Im guessing that you have written an error page and are getting the exception as null? In which case you need to add the errorPage="yourErrorPage.jsp" directive in your JSP and the isErrorPage="true" on your error page.
If your getting some other NullPointer , post your code!
Hi, my code is something like this:
JspContentContext jspContext = JspContentContext.getJspContentContext(request);
and i tried this too:
the idea is, if condition is true, redirect the user to an error page, i tested both codes in the jpf and it works, but when i test in the portal the Java null pointer exception appears, im using this jsp like a portlet.
where are you getting the NullPointer exception? in error.jsp?
Show the stack trace and code