Hi,
I have previously created excel sheets in JSP in weblogic, and i get
the result accurately.
I had used;
<%@ page contentType="application/vnd.ms-excel" import="java.sql.*"
language="java"%>
at the top of the page and,
<meta http-equi="Content-Type" content="application/vnd.ms-excel;
charset=iso-8859-1">
in the head tag of my page.
Now I'm using tomcat 5.5 and this is just not working....
Can someone help me out with this?
|
|
0
|
|
|
|
Reply
|
ruds
|
3/16/2008 6:37:45 AM |
|
On Mar 16, 5:37=A0pm, ruds <rudra...@gmail.com> wrote:
=2E..
> Now I'm using tomcat 5.5 and this is just not working....
Lazy is it?* Try beating it with a stick, or
alternately, offer it inducements - like cash.
* WTF does 'not working' mean?
--
Andrew T.
|
|
0
|
|
|
|
Reply
|
Andrew
|
3/16/2008 6:46:12 AM
|
|
the file is getting created but the data is not there..
|
|
0
|
|
|
|
Reply
|
ruds
|
3/16/2008 8:19:13 AM
|
|
On Mar 16, 7:19=A0pm, ruds <rudra...@gmail.com> wrote:
> the file is getting created but the data is not there..
Thanks for clarifying. Now hopefully someone* who
is experienced with WebSphere and Tomcat can explain
the difference in behaviour.
( * I can offer no useful suggestions, so I will bow
out of the thread now. Hope you get it sorted. )
--
Andrew T.
PhySci.org
|
|
0
|
|
|
|
Reply
|
Andrew
|
3/16/2008 9:06:05 AM
|
|
On Mar 16, 8:06=A0pm, Andrew Thompson <andrewtho...@gmail.com> wrote:
> On Mar 16, 7:19=A0pm, ruds <rudra...@gmail.com> wrote:
=2E..
> ( * 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
|
|
0
|
|
|
|
Reply
|
Andrew
|
3/16/2008 9:38:53 AM
|
|
> Is there any chance of 'swallowing exceptions'
> within a JSP? =A0I 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=3D"c" uri=3D"http://www.java.sun.com/jsp/jstl/core" %>
<c:catch var=3D"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,
|
|
0
|
|
|
|
Reply
|
diz4tech
|
3/16/2008 3:29:29 PM
|
|
diz4tech@gmail.com wrote:
> 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".
--
Lew
|
|
0
|
|
|
|
Reply
|
Lew
|
3/16/2008 5:17:14 PM
|
|
Andrew Thompson wrote:
> On Mar 16, 8:06 pm, Andrew Thompson <andrewtho...@gmail.com> wrote:
>> On Mar 16, 7:19 pm, ruds <rudra...@gmail.com> wrote:
> ...
>> ( * 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.
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>
--
Roger Lindsj�
|
|
0
|
|
|
|
Reply
|
ISO
|
3/16/2008 6:52:20 PM
|
|
ruds wrote:
> Hi,
> I have previously created excel sheets in JSP in weblogic, and i get
> the result accurately.
> I had used;
> <%@ page contentType="application/vnd.ms-excel" import="java.sql.*"
> language="java"%>
> at the top of the page and,
> <meta http-equi="Content-Type" content="application/vnd.ms-excel;
> charset=iso-8859-1">
> in the head tag of my page.
> Now I'm using tomcat 5.5 and this is just not working....
> Can someone help me out with this?
Can you show us the complete JSP? That would be a start.
|
|
0
|
|
|
|
Reply
|
Mark
|
3/16/2008 8:47:56 PM
|
|
Andrew Thompson wrote:
> 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
|
|
0
|
|
|
|
Reply
|
ISO
|
3/16/2008 11:06:33 PM
|
|
ruds wrote:
> I have previously created excel sheets in JSP in weblogic, and i get
> the result accurately.
> I had used;
> <%@ page contentType="application/vnd.ms-excel" import="java.sql.*"
> language="java"%>
> at the top of the page and,
> <meta http-equi="Content-Type" content="application/vnd.ms-excel;
> charset=iso-8859-1">
> in the head tag of my page.
> Now I'm using tomcat 5.5 and this is just not working....
Are you generating CSV or XLS format ?
Generating XLS format from JSP is error prone. You should
use a servlet for that.
Generating CSV should be possible from JSP even though I would
still recommend a servlet.
An empty file has nothing to do with the content type, so
we need more info.
Arne
|
|
0
|
|
|
|
Reply
|
ISO
|
3/16/2008 11:10:11 PM
|
|
In article
<3d307e1c-44e2-4e86-9f11-1339fb90d277@s13g2000prd.googlegroups.com>,
Andrew Thompson <andrewthommo@gmail.com> wrote:
> On Mar 16, 7:19�pm, ruds <rudra...@gmail.com> wrote:
> > the file is getting created but the data is not there..
>
> Thanks for clarifying. Now hopefully someone* who
> is experienced with WebSphere and Tomcat can explain
> the difference in behaviour.
>
> ( * 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. :-)
--
--Tim Smith
|
|
0
|
|
|
|
Reply
|
Tim
|
3/17/2008 4:48:40 AM
|
|
|
11 Replies
330 Views
(page loaded in 0.141 seconds)
Similiar Articles: Generating excel sheets through JSP - comp.lang.java.programmer ...Hi, I have previously created excel sheets in JSP in weblogic, and i get the result accurately. I had used; at the top of the page and, in the head ... Export HTML table inside JSP to Excel using Java - comp.lang.java ...When I generate this table inside this JSP page, it will offer abutton for user to click if he/she decides to export the HTML tableinto an Excel sheet... ... from pdf through ... Getting data from Excel - Sheets - comp.soft-sys.sas... Sheets - comp.soft-sys.sas Dear All, I generate Multiple excel sheets ... How to get data from Excel sheet - JSP Tutorials,EJB Tutorial,JDBC ... Hi, I have an excel sheet with ... Password protection in SAS - comp.soft-sys.sas... wrote: >All, >I went through all you said but issue is my output is xls file( excel is ... technical approach, you can generate ... How can I import data from Excel sheets ... excelxp tagset and data type in xml - comp.soft-sys.sasYou can pass formatting instructions like this through ... type in xml - comp.soft-sys.sas... in Multiple Excel Sheets ... example code that uses the ExcelXP tagset to generate ... Reloading Sheet format with API - comp.cad.solidworksJPEG of Drawing (idw) through Inventor API ... Please help: Tagset.ExcelXP Help - Excel cannot open workbook ..... am using the SAS code below to generate multi-sheet excel ... Dynamic PDF-Generation via Server / Web-to-print - how? - comp ...A web application (ASP.NET or JSP ... product - DocScape - to generate a product catalog as well a multitude of product sheets and ... you may not understand, look through ... Mass Property - comp.cad.solidworks... but i wont that > number to be in my excel sheet ... If you want to get the mass in Excel, you could generate a BOM (of ... The mass flow through the ... mass flow (because ... XLSREAD issues - comp.soft-sys.matlabA generic sample of my code that is generating ... up that I have to manually click through ... I have an Excel book with quite a number of sheets, each sheet contains one ... Getting some xml contents in a gif file - comp.compression ...... text.pdf hi, i wrote one xsl stylesheet. i am generating a ... I have read through some ... Read data from embedded ... Import Excel sheet into tables in FM7 - comp.databases ... export fdf from pdf through java - comp.text.pdf... file from a pdf (with a filled form inside) through ... Generating pdf from a template and xml with binary image ... Export HTML table inside JSP to Excel using Java - comp ... Adding simple database, excel export, and reports with D4 Pro ...After I went through the debugging process and ... computer works on the level below third generation ... Add Worksheets | Excel Macro To Add Each Day’s Report as A New ... API / Macro Help - comp.cad.solidworks... macro I modified to export a dwg file for every sheet in ... swModel.GraphicsRedraw2 'loop through all views ... comp.databases.ms-access FREE Excel VBA Code & Excel ... create a sine wave - comp.soft-sys.matlabHow to generate sine wave in m code - comp.soft-sys.matlab ... FFT of Pure Sine wave ... create excel plot with MATLAB? - comp.soft-sys.matlab create a sine wave - comp.soft ... Help to choose a new MCU - comp.arch.embedded... Host/OTG controller - Four UARTs with baud rate generation ... ----- Posted through http://www.EmbeddedRelated.com ... comp.cad.solidworks ..... in assemblies from an Excel ... Generating excel sheets through JSP - Java forums. Thousands of ...Hi, I have previously created excel sheets in JSP in weblogic, and i get the result accurately. I had used; <%@ page contentType="application/vnd.ms-excel" import ... Generating excel sheets through JSP - comp.lang.java.programmer ...Hi, I have previously created excel sheets in JSP in weblogic, and i get the result accurately. I had used; at the top of the page and, in the head ... 7/17/2012 7:28:39 AM
|