Hai!
I'm Ananda,in your city.To get exception,Hint of codes are given below.you
take the ideal.
Or u can store the exception value in a hidden type and then call it in
another page(jsp).
****************Page-1************************
<%@ page language="java" import="java.io.*;" %>
<% try { %>
<%
Your programming part.
%>
<% }catch(Exception e) {
if(e != "")
<script language="JavaScript">
remote = window.open
("xyz.jsp", "remote", "height=75,width=200")
</script>
}
<input type="submit" value="Check" name="b1">
*****************Page-2************************
xyz.jsp
<html>
<body>
<% String s=request.getParameter("exception");
out.println(s);
%>
</body>
</html>
> Hi All
> I need to catch the exception that is thrown in the catch block of a JSP
> and
> pop it up as an alert on the web page. Can anyone advice me on how to go
> about it ASAP? If anyone has a code I can use that would be really
helpful.
>
> Thanks in advance
>
> Regards
> Yamini Krishnamurthi
> Software Engineer
> Intelligroup Asia Pvt Ltd
> Hyderabad
> yamini.krishnamurthy@i...
>
>