Re: java + oracle question ?

2003-01-22 Thread Najeem Lawal
Hello, I have similar problems. i searched my PC for 'classes12.zip' but could not find it. could anybody mail it to me. Also, i hope driver for MS-SQL is included. Thank you. Regards, Najeem Lawal Sajag Patel cc:

Re: connection alive detection

2003-01-22 Thread Pranav Lal
Hi Gabriel, I faced similar issues and as of now, the only way I have found to do this is session handling. Pranav At 08:31 AM 1/22/2003 +0100, you wrote: >Hi, does somebody knows if there are any way of knowing from a servlet if >the client >connection that have thrown the request is still aliv

Re: connection alive detection

2003-01-22 Thread ROLDAN, Gabriel raul
mmm I think i figure out the idea... may be a could have a session attribute that gets initialized on every of this "critical" requests, so I can check before any expensive operation if the client is still waiting for it... is something like that what do you mean? thanks -Mensaje origina

Re: connection alive detection

2003-01-22 Thread Pranav Lal
Hi Gabriel, Yes or, if you find that a request is taking too long (not too sure how you will check this) or the user has waited too long you could time out the session. Pranav At 10:27 AM 1/22/2003 +0100, you wrote: >mmm I think i figure out the idea... >may be a could have a session attrib

Re: insert retrieve (text, image) jsp oracle ??

2003-01-22 Thread Dmitry Namiot
See DB taglib from Coldtags suite: http://www.servletsuite.com/jsp.htm This taglib do support operations with BLOB fields (see examples) >Hi, I want to upload images and text document to an oracle database, and >then retrieve them from the database , >1)how to do it in JSP ? >2) is there any tagli

Re: connection alive detection

2003-01-22 Thread Eric Noriega
I assume you are talking about a long running query, during which the user might stop the request, not an open session. The only way to tell is to return content to the browser in hopes that the connection will abort. This can be defeated by caching on the server side, but by flushing the s

Re: doubt in sessionssss

2003-01-22 Thread Eric Noriega
Easiest way is to create a static Vector in the class and add values to it as they come in. This is glossing over all sorts of issues, but if you have a simple setup (and it sounds like you do) this should work fine. karthik s wrote: hi all, Is there any way to access the value of other ses

Re: java + oracle question ?

2003-01-22 Thread Alan Meyer
On 22 Jan 2003 at 0:00, sufi malak <[EMAIL PROTECTED]> wrote: > import java.sql.*; > public class JDBCExample { > public static void main(String[] args) { > try { > Class.forName("oracle.jdbc.driver.OracleDriver"); > Connection conn = DriverManager.getConnection( > "jdbc:

JSP and PDF

2003-01-22 Thread Todd Barr
Hello, I know that PHP has a script that allows you to generate a PDF file from HTML text. I was wondering if there was a similar thing in JSP. Additionally, is there a way I can generate Excel and .Doc files? Thanks -T =

Re: JSP and PDF

2003-01-22 Thread Amit Ghaste
i have seen it done before.. why dont u search on google.. sorry I dont remember the link. Amit -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Todd Barr Sent: Wednesday, January 22, 2003 2:19 PM To: [EMAI

Re: JSP and PDF

2003-01-22 Thread Cristy Fagan
To generate Excel docs, set the content type in the response: response.setContentType("application/vnd.ms-excel"); I imagine that it would be similar for the other two extensions. Hope that helps! CF > -Original Message- > From: A mailing list about Java Server Pages specification and

Re: JSP and PDF

2003-01-22 Thread Bryan LaPlante
here is a link to an open source product I have used to create PDF on the fly. Looks like it is a little more robust now than when I was using it but the docs are pretty good. http://www.pdflib.com/ - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: We

Re: JSP and PDF

2003-01-22 Thread Jandson Almeida da Silva
Looking this site: XML -> PDF XML -> HTML XML -> Excel http://sourceforge.net/projects/jasperreports Jandson Almeida da Silva Web Developer [EMAIL PROTECTED] - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 7:19 PM Sub

Calling bean static methods from within JSPs.

2003-01-22 Thread Craig Linton
Let's say we have a Class Util with a static method meth such as: Class Util { public static String meth (String s) { StringBuffer sb = new StringBuffer(); sb.append (s); sb.append (s); return sb.toString(); } } Let's say I have two JSPs from completely different co

Re: Calling bean static methods from within JSPs.

2003-01-22 Thread Eric Noriega
Basically, each JSP == 1 class. Both are executing the same class provided they are both in the same JVM. Generally, a static method should keep no state, so it should make no difference if both JSP threads are calling the same method at the same time. The example uses variable that are sto

Re: JSP and PDF

2003-01-22 Thread Brendan Spinks
Or you can use this for pdf: http://www.lowagie.com/iText/ and the Jakarta poi project for excel (HSSF part): http://jakarta.apache.org/poi/index.html -Original Message- From: Jandson Almeida da Silva [mailto:[EMAIL PROTECTED]] Sent: Thursday, 23 January 2003 7:48 AM To: [EMAIL PROTECT

Re: insert retrieve (text, image) jsp oracle ??

2003-01-22 Thread Alan Meyer
> > See the getBlob method in the ResultSet object of the JDBC API 2.0. > > Pranav My own experience with trying to store and retrieve binary data from Oracle was very painful. What I discovered was that there are different ways to do it, many of which ALMOST work, or work if the data is not too