This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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....