File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes jsp-servlet error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp-servlet error " Watch "jsp-servlet error " New topic

jsp-servlet error

anita dhar
Ranch Hand

Joined: May 24, 2007
Posts: 34
from jsp apge i want to invoke servlet error page
for that what are the neccesaar steps and pls give example code
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61963

You'll have to be more explicit by what you mean by "invoke the servlet error page".

And "pls" is not a word. Please be sure to use real words such as "please" when posting to the forums.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61963

my question is i am having one jsp page
and through this request i have to send control
to the servlet page like error page but that page should be servlet that is from jsp

Which error page are you speaking of?
Sutham Rojanusorn

Joined: Aug 12, 2005
Posts: 9
I guess that he want to use error page through servlet
before to actual jsp error page if errors occured.
(normally declared by <%@page ... errorPage="xxx.jsp">

by this means you have to capture all error from your selvlet
then use dispatcher to error page you want.
I agree. Here's the link:
subject: jsp-servlet error