You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Gao Di <ja...@yahoo.com.cn> on 2004/08/20 11:13:33 UTC

how to catch my own exception in jstl

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/

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


Re: how to catch my own exception in jstl

Posted by Gao Di <ja...@yahoo.com.cn>.
please help me.

 --- Gao Di <ja...@yahoo.com.cn> 的正文:
> correct,but it seems the <c:catch>
> can't find the original exception.that's what i want
> to know.
> 
>  --- Helios Alonso <ha...@atg.com.uy> 的正文:
> > 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 "causedBy" property...
> > 
> > At 22:22 20/08/2004 +0800, you wrote:
> > >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 <kr...@dotech.com> 的正文:
> > > > <c:catch var="exc">
> > > >   ...
> > > > </c:catch>
> > > > <c:if test="${exc != null}">
> > > >   <c:out value="${exc.message}"/>
> > > > </c:if>
> > > >
> > > > Quoting Gao Di <ja...@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 <ma...@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
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > 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
> 
>  

_________________________________________________________
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


Re: how to catch my own exception in jstl

Posted by Gao Di <ja...@yahoo.com.cn>.
correct,but it seems the <c:catch>
can't find the original exception.that's what i want
to know.

 --- Helios Alonso <ha...@atg.com.uy> 的正文:
> 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 "causedBy" property...
> 
> At 22:22 20/08/2004 +0800, you wrote:
> >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 <kr...@dotech.com> 的正文:
> > > <c:catch var="exc">
> > >   ...
> > > </c:catch>
> > > <c:if test="${exc != null}">
> > >   <c:out value="${exc.message}"/>
> > > </c:if>
> > >
> > > Quoting Gao Di <ja...@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 <ma...@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
> 
> 
> 
>
---------------------------------------------------------------------
> 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


Re: how to catch my own exception in jstl

Posted by Helios Alonso <ha...@atg.com.uy>.
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 "causedBy" property...

At 22:22 20/08/2004 +0800, you wrote:
>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 <kr...@dotech.com> µÄÕýÎÄ£º
> > <c:catch var="exc">
> >   ...
> > </c:catch>
> > <c:if test="${exc != null}">
> >   <c:out value="${exc.message}"/>
> > </c:if>
> >
> > Quoting Gao Di <ja...@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 <ma...@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



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


Re: how to catch my own exception in jstl

Posted by Gao Di <ja...@yahoo.com.cn>.
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 use jstl to catch the DaoException in
the DeviceHelper and get the "server down" string.
in fact the problem is,can the <c:catch> tag catch the
exactly exception,if no,i can only use jsp script.

 --- Kris Schneider <kr...@dotech.com> 的正文:
> 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 <ja...@yahoo.com.cn>:
> 
> > 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 <kr...@dotech.com> 的正文:
> > > <c:catch var="exc">
> > >   ...
> > > </c:catch>
> > > <c:if test="${exc != null}">
> > >   <c:out value="${exc.message}"/>
> > > </c:if>
> > > 
> > > Quoting Gao Di <ja...@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 <ma...@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/
> 
> -- 
> Kris Schneider <ma...@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


Re: how to catch my own exception in jstl

Posted by Kris Schneider <kr...@dotech.com>.
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 <ja...@yahoo.com.cn>:

> 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 <kr...@dotech.com> µÄÕýÎÄ£º
> > <c:catch var="exc">
> >   ...
> > </c:catch>
> > <c:if test="${exc != null}">
> >   <c:out value="${exc.message}"/>
> > </c:if>
> > 
> > Quoting Gao Di <ja...@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 <ma...@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/

-- 
Kris Schneider <ma...@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


Re: how to catch my own exception in jstl

Posted by Gao Di <ja...@yahoo.com.cn>.
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 <kr...@dotech.com> 的正文:
> <c:catch var="exc">
>   ...
> </c:catch>
> <c:if test="${exc != null}">
>   <c:out value="${exc.message}"/>
> </c:if>
> 
> Quoting Gao Di <ja...@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 <ma...@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


Re: how to catch my own exception in jstl

Posted by Kris Schneider <kr...@dotech.com>.
<c:catch var="exc">
  ...
</c:catch>
<c:if test="${exc != null}">
  <c:out value="${exc.message}"/>
</c:if>

Quoting Gao Di <ja...@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 <ma...@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