tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gao Di <jaoy...@yahoo.com.cn>
Subject Re: how to catch my own exception in jstl
Date Fri, 20 Aug 2004 14:22:41 GMT
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 <kris@dotech.com> 的正文:
> <c:catch var="exc">
>   ...
> </c:catch>
> <c:if test="${exc != null}">
>   <c:out value="${exc.message}"/>
> </c:if>
> 
> Quoting Gao Di <jaoyina@yahoo.com.cn>:
> 
> > i know the <c:catch> 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 IOException
> in
> > the deep layer,and i have written my own exception
> > class to describe the detail error reason,such as:
> > catch (IOException e) {
> > throw new DaoException("server down");}	
> > so i want to know in my jsp files can i use jstl
> to
> > catch the DaoException and show the "server down"
> > message on the page.yet the <c:catch> can only
> catch
> > the exception,it didn't know what the exactly
> > exception it is.
> > 
> >
>
_________________________________________________________
> > Do You Yahoo!?
> > 150万曲MP3疯狂搜,带您闯入音乐殿堂
> > http://music.yisou.com/
> > 美女明星应有尽有,搜遍美图、艳图和酷图
> > http://image.yisou.com
> > 1G就是1000兆,雅虎电邮自助扩容!
> >
>
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
> 
> -- 
> Kris Schneider <mailto:kris@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> 
>  

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message