File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Sep 08, 2005
Oct 03, 2005 13:40:00
i have one requirment
I have one jsp page which has one button. now when you click that button it will call another
page which will call a function ( which is defined in a class)
now this function writefile will write my output to an excell sheet.
i collect the output in <html> and then use
now the problem is that .
when i click the button for the first time the excell sheet is not loaded , but if i click again the excell sheet will be laoded
now i thought flush.buffer will do my work
but can you tell me where should i write this
1)After my out.print(buffer.toString()) line in the function writefile
public void writefile1(
or in the JSP page
SearchEx s = new SearchEx();
Joined: Dec 11, 2004
Oct 03, 2005 16:32:00
I'm not sure why you're going through the process of writing to disk and then reading it back. If you don't need to and just want to stream the HTML and have it opened in
, there is a page in the
that shows how to do this.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
problem in passing parameters
AJAX ( problem while retrieving xml data from the jsp)
opeing excell sheet in new window
AJAX : How can I set response type other than 200 ("OK") in Server Response
How to call a class in yr jsp page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013