Re: how to catch my own exception in jstl

2004-08-29 Thread Gao Di
please help me. --- Gao Di <[EMAIL PROTECTED]> 的正文: > correct,but it seems the > can't find the original exception.that's what i want > to know. > > --- Helios Alonso <[EMAIL PROTECTED]> 的正文: > > So an IOException is trapped and converted by your > > logic to a DAOException > > (the one you w

Re: how to catch my own exception in jstl

2004-08-22 Thread Gao Di
correct,but it seems the can't find the original exception.that's what i want to know. --- Helios Alonso <[EMAIL PROTECTED]> 的正文: > So an IOException is trapped and converted by your > logic to a DAOException > (the one you want to display) and throwed. The jsp > catchs this and throws > it's

Re: how to catch my own exception in jstl

2004-08-22 Thread Gao Di
cause the DeviceHelper is on the top layer,it can't catch the IOException,then i throw a custom exception (DaoException) in it.in the place which really generates IOException,i put the message in my custome exception: catch (IOException e) { throw new DaoException("server down");} so i think,can i

Re: how to catch my own exception in jstl

2004-08-20 Thread Helios Alonso
So an IOException is trapped and converted by your logic to a DAOException (the one you want to display) and throwed. The jsp catchs this and throws it's own exception hmmm... Is it correct? If it's correct, the place to look is if exceptions that jsp throws have a "nestedException" or "ca

Re: how to catch my own exception in jstl

2004-08-20 Thread Kris Schneider
You're right, I skimmed your post too quickly. Can you provide a more complete stack trace? So, does DeviceHelper.getDevices() catch IOException and throw DaoException? Quoting Gao Di <[EMAIL PROTECTED]>: > it seems u don't know what i mean,i know the useage u > wrote,but it only displays the el

Re: how to catch my own exception in jstl

2004-08-20 Thread Gao Di
it seems u don't know what i mean,i know the useage u wrote,but it only displays the el exception message. --- Kris Schneider <[EMAIL PROTECTED]> 的正文: > > ... > > > > > > Quoting Gao Di <[EMAIL PROTECTED]>: > > > i know the can catch the exception on > > jsp,but the error message whic

Re: how to catch my own exception in jstl

2004-08-20 Thread Kris Schneider
... Quoting Gao Di <[EMAIL PROTECTED]>: > i know the can catch the exception on > jsp,but the error message which i got from it looked > like below: > javax.servlet.jsp.el.ELException: An error occurred > while getting property "deivces" from an instance of > class com.service.transfer.

how to catch my own exception in jstl

2004-08-20 Thread Gao Di
i know the can catch the exception on jsp,but the error message which i got from it looked like below: javax.servlet.jsp.el.ELException: An error occurred while getting property "deivces" from an instance of class com.service.transfer.client.DeviceHelper in fact this error was generated by an IO