This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes org.apache.jasper.JasperException: java.lang.NullPointerException when JSP page refreshes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "org.apache.jasper.JasperException: java.lang.NullPointerException when JSP page refreshes" Watch "org.apache.jasper.JasperException: java.lang.NullPointerException when JSP page refreshes" New topic
Author

org.apache.jasper.JasperException: java.lang.NullPointerException when JSP page refreshes

Laxman Chowdary
Greenhorn

Joined: Apr 11, 2012
Posts: 21

In my jsp page some pure java code there i.e, scriptlet. After a long time when refresh it then it is throwing
org.apache.jasper.JasperException: java.lang.NullPointerException
sometimes not for a long time also it is throwing same Exception. and the JSP page is displaying empty page. So the user have only one option is Logout. So to avoid that and redirect him to one page that is error page. How to do it??
Any idea???
Palak Mathur
Ranch Hand

Joined: Jan 29, 2007
Posts: 303

Laxman Chowdary wrote:In my jsp page some pure java code there i.e, scriptlet. After a long time when refresh it then it is throwing
org.apache.jasper.JasperException: java.lang.NullPointerException
sometimes not for a long time also it is throwing same Exception. and the JSP page is displaying empty page. So the user have only one option is Logout. So to avoid that and redirect him to one page that is error page. How to do it??
Any idea???


I think you want to set the @errorPage attribute in the page directive:-
Something like this:



Palak Mathur | My Blog | TechJaunt | What is JavaRanch? | List of All FAQs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.jasper.JasperException: java.lang.NullPointerException when JSP page refreshes
 
Similar Threads
Web page for hand-held
500 Error after requesting a JSP after a long time
try block is too long
New to Java Web Application
An exception occurred processing JSP page