> the file is getting created but the data is not there..
...
> ( * I can offer no useful suggestions, ..
But now I think about it, I will ask a general
question re JSP of anybody that can answer it.
Is there any chance of 'swallowing exceptions'
within a JSP? I did some JSP, but my recollection
is fuzzy.
And to the OP. Do you understand what I mean by
'swallow exceptions'? OK.. since I'm here, the
general form would be
try {
// something that might fail
catch(Exception e) {
//do nothing useful with the information
// and continue
}
That owuld be 'swallowing an exception'.
Whereas the way to do the opposite (*not*
swallow exceptions) would be to..
try {
// something that might fail
catch(Exception e) {
// be very verbose about what went wrong
e.printStackTrace();
}
How long is the JSP file? If it is short, it
may pay to post it to this thread.
--
Andrew T.
PhySci.org
diz4tech@gmail.com - 16 Mar 2008 16:29 GMT
> Is there any chance of 'swallowing exceptions'
> within a JSP? I did some JSP, but my recollection
> is fuzzy.
Hi Friends,
Ruds, am realy sorry- i dont have any idea abt ur query, hope somebody
else will clarify it.
Thompson,
JSTL provides library tags to maintain Exceptions in JSP pages
& is
<%@ taglib prefix="c" uri="http://www.java.sun.com/jsp/jstl/core" %>
<c:catch var="sampleExc">
- code -
</c:catch>
By this JSP container will handle the exception, using the custom var
we can able to display the type of error occured in the later part of
the code.
Thank you,
Lew - 16 Mar 2008 18:17 GMT
> Ruds, am realy sorry- i [sic] dont have any idea abt ur query, hope somebody
> else will clarify it.
Sure:
<http://en.wikipedia.org/wiki/Ur>
And it's spelled with an upper-case "U".

Signature
Lew
Roger Lindsjö - 16 Mar 2008 19:52 GMT
> ...
>> ( * I can offer no useful suggestions, ..
[quoted text clipped - 5 lines]
> within a JSP? I did some JSP, but my recollection
> is fuzzy.
You could of course use <% try } %>
... JSP code ...
<% } catch (Exception e) {} %>
or use JSTL core.
<c:catch var="e">
... JSP code ...
</c:catch>
<c:if test="${e != null}">
Exception ${e}
</c:if>

Signature
Roger Lindsjö
Arne Vajhøj - 17 Mar 2008 00:06 GMT
> But now I think about it, I will ask a general
> question re JSP of anybody that can answer it.
>
> Is there any chance of 'swallowing exceptions'
> within a JSP? I did some JSP, but my recollection
> is fuzzy.
It is possible to catch exceptions in Java code embedded
in or called from a JSP page.
It is also possible to redirect to an error page
in case of an exception.
My assumption would be that if someone is capable of using
either of those techniques, then are also able to
troubleshoot effectively. They are not something that
get added standard.
Arne
In article
<3d307e1c-44e2-4e86-9f11-1339fb90d277@s13g2000prd.googlegroups.com>,
> > the file is getting created but the data is not there..
>
[quoted text clipped - 4 lines]
> ( * I can offer no useful suggestions, so I will bow
> out of the thread now. Hope you get it sorted. )
Empty output is sorted, so he's OK there. :-)

Signature
--Tim Smith