/* Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
This code is for educational purposes only. Use at own risk.*/

1. <%@ page errorPage="oops.jsp" %> 

2.  

3. <%! int  secspermin  ;  %> 

4.  

5. <HTML

6.  

7. <HEAD

8.  

9. <TITLE

10. JavaServer Page Error 

11. </TITLE

12.  

13. </HEAD

14.  

15. <BODY

16.  

17. On the server,  <b> 

18.  

19. <%=  System.currentTimeMillis() / secspermin %> 

20.  

21. minutes since 1-1-1970

22. </b> 

23.  

24. </BODY

25. </HTML

26.  

27. ========== oops.jsp ========================= 

28.  

29. <%@ page isErrorPage="true" %> 

30.  

31. <HTML

32. <HEAD

33. <TITLE

34. JSP Error Page 

35. </TITLE

36. </HEAD

37.  

38. <BODY  BGCOLOR = "#FF4F4F" TEXT="#FFFF00"

39.  

40. <h2

41. This is from 

42. <u> 

43.   <%= request.getServletPath() %> 

44. </u> 

45. carrying 

46. <u> 

47.    <%= exception %> 

48. </u> 

49. </h2

50.  

51. </BODY

52. </HTML