• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

creating jsp error page

I want to create an error jsp page with parameters that will be passed on to it.

I want to be able to call it from any file - jsp,java,servlet...
meaning - anytime I get an exception - I want to be able to through some exception with defined attributes and to show the error page with those attributes.

what's to best way to implement it?
0
aquasw
Asked:
aquasw
  • 2
  • 2
1 Solution
 
matthew016Commented:
What do you want in the parameters ?
0
 
aquaswAuthor Commented:
according to the error I throw, I want to pass on my description, a possible solution to the error and also the exception stack.
0
 
aquaswAuthor Commented:
the link describes the error page. and I can set it up as a default error page.
that I know how to do.

how do I call this error-page intentionally and throw my exception. (forward,resubmit....?)
 
0
 
matthew016Commented:
If you throw your exception the error page will show up, and,
create your custom Exceptions and give them a message.
Then you call getMessage on the exception thrown, describing the possible solution.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now