Hi All I am using EJB to connect to SAP through an intermediate interface of Java classes. All the exceptions raised at the various stages, I am having them thrown back to the JSP. I need to catch the exceptions in my JSP and pop it up as an alert. How do I do it? Thanks in advance Yamini
Seems to me you have two choices, neither of which will be able to pop up an alert on the user's browser: 1. Use explicit try/catch structures in your JSP This has the advantage that you can create an error message using the current value of variables. 2. Designate an errorPage for your JSP and handle the exception there. Both of these are going to write a normal HTML page to the browser. Bill
[This message has been edited by Peter den Haan (edited May 07, 2001).]
Originally posted by Yamini Krishnamurthi: Hi All I am using EJB to connect to SAP through an intermediate interface of Java classes. All the exceptions raised at the various stages, I am having them thrown back to the JSP. I need to catch the exceptions in my JSP and pop it up as an alert. How do I do it? Thanks in advance Yamini
hi yamini, i have a code fragment which i hope will satisfy your requirements....