Re: JDBC Connection close

2002-05-13 Thread Ashwani Kalra
hi, Connection.close() is not required just because they have to be garbage collected. When using the connection pool , this statement allows the pool implementation to return the connection to the pool. If not using pooling , then it allows the database to clean up the resources. regds Ashwani

Re: JDBC Connection close

2002-05-13 Thread Vikramjit Singh
yeah it does make a difference if you dont close the resultsets and statements. If you are doing procedures in oracle, then you need not care of closing the resultsets coz oracle does that for you. but when u do it in java. oracle does not take care and you have to explicitly close the resultsets

Re: Tomcat Crash Problem

2002-05-13 Thread Jagan K Samuel
hi It is windows With Best Regards Jagan K Samuel "Madhan M.Srinivasan" To: [EMAIL PROTECTED] Subject: Re: Tomcat Crash Problem Sent by: A mailing list a

Re: Tomcat Crash Problem

2002-05-13 Thread Madhan M.Srinivasan
Is it windows or Unix Imagination is More Important than Knowledge Cheers !!! MSM -Original Message- From: Jagan K Samuel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: Tomcat Crash Problem Hi I have an application developed in Tomcat w

Re: JDBC Connection close

2002-05-13 Thread Madhan M.Srinivasan
Technically speaking, its enough to close the connection object. To be a good practice close the associated objects like recordset Imagination is More Important than Knowledge Cheers !!! MSM -Original Message- From: Manoj Nahar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 11:3

Re: JDBC Connection close

2002-05-13 Thread Ashwani Kalra
Proper sequence should be resultset statement connection if you diretly close the connection, then your code may behave differently depending upon the driver. Closing the connection in finally block may give you exception. You should always put in try block. whether connection is closed or not is

Running Servlet in Tomcat

2002-05-13 Thread Bhushan_Bhangale
Hi All, I have installed Tomcat 4.0.3 and was able to run the "examples" Web application. I deployed my application but unable to run the servlets. The JSPs are running fine. I have defined everything including web.xml but nothing is happening. The same application is running fine with IPlanet

Re: JDBC Connection close

2002-05-13 Thread vijay
hi, if u close the connections in finally block, then it will be closed successfully. there will be no connections opened. its advisable to close the connection after closing other things thanks & regards vijayanand.R (),,,() ( (. .) .-''-. (o ) ) ('o' ) =(,,)=(

Re: can't use out.println in function

2002-05-13 Thread [Vaishali S. Pandya]
hi all actually the class i have to pass is JspWriter it works fine Thanks for the respond Vaishali Reliance Ind Ltd Ahmedabad Hi Vaishali, make it out.println("Hello"); and it will work Manoj At 10:00 AM 5/11/2002 +0530, you wrote: >Hello all >i wrote a function using ><%! >fun(){ >' >Sys

JDBC Connection close

2002-05-13 Thread Manoj Nahar
Hi there, Does it make aby difference if i close the JDBC connection without closing all the resultsets and statements. I am closing connections is try catch finally. Is it possible that connections are left open even after closing them in finally Manoj Nahar http://www.naharonline.com --- O

Re: can't use out.println in function

2002-05-13 Thread Manoj Nahar
Hi Vaishali, make it out.println("Hello"); and it will work Manoj At 10:00 AM 5/11/2002 +0530, you wrote: >Hello all >i wrote a function using ><%! >fun(){ >' >System.out.println("Hello"); >' >' >' >} >%> ><% > fun(); >%> >and call it from the main code >every thing is working well but

Tomcat Crash Problem

2002-05-13 Thread Jagan K Samuel
Hi I have an application developed in Tomcat which is to be hosted in a production environment. But when hosted Tomcat crashes often giving Hot Spot Error. This is the error i get [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (203)]: connection_tcp_ge

Re: comparing JSP/PHP

2002-05-13 Thread Daniel Jaffa
You are also not looking hard enough for shared java support. You can get it for free at several sites. And you can find many hosting companies offering support. Daniel Jaffa Java Developer -Original Message- From: A mailing list about Java Server Pages specification and reference [mai

Re: JDBC connection failing to Oracle 8i with Tomcat3.3

2002-05-13 Thread Gare, Tref
Thanks to all who've been trying to help.. some of my hair remains and a variation on this one from Lloyd has done the business. We edited the Tomcat.bat file where it was setting the classpath such that it accesses the %TOMCAT_HOME%\lib folder specifically (sort of was expecting that to be the de

Re: Question about deploying jsp pages as war files. Maybe Off Topic.

2002-05-13 Thread Mike Shoemaker
Okay, so its possible to not jar them up in a war file(or would that be war them up ;) What is the norm? Do you typically just keep source in war files? Im actually using Orion so you nice job reading my mind :) -Original Message- From: A mailing list about Java Server Pages specificat

Re: Inheritance in JSP...

2002-05-13 Thread Loganathan, Kamalesh
create a base java class implementing HttpJspPage interface. then extend all your jsps by from the base class. -Original Message- From: Brian P Bohnet [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 4:56 PM To: [EMAIL PROTECTED] Subject: Inheritance in JSP... I've noticed people a

Re: Inheritance in JSP...

2002-05-13 Thread Zachary Roberts
Why not just put your methods in a bean, then use that bean in all of your JSP's and call the method like this: theBeanName.yourMethodInBean() Zac >>> [EMAIL PROTECTED] 05/13/02 03:56PM >>> I've noticed people asking about setting global variables, calling methods etc using jsp. On the same li

Inheritance in JSP...

2002-05-13 Thread Brian P Bohnet
I've noticed people asking about setting global variables, calling methods etc using jsp. On the same lines as those topics, how would one use inheritance with JSP's. Like having a master jsp that would have methods other jsp's could inherit so they would be written only once? Thanks, Brian

Re: Question about deploying jsp pages as war files. Maybe Off Topic.

2002-05-13 Thread Joseph Ottinger
It depends on your server. In many cases, you can set up contexts that are virtual directories; in Orion/Oracle9iAS you'd do this in orion-web.xml. >From: Mike Shoemaker <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [E

Re: how to use global variable?

2002-05-13 Thread Joseph Ottinger
You know... the Writer, from java.io.*, in the standard library. The docs for Java are publicly available. You should check them out? >From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL P

Can't run any JSPs (including the examples), but servlets run fine...

2002-05-13 Thread Michael Nicholson
I've seen this question around, and I'm having the same problem. I've even seen a couple of answers, but they don't seem to work for me. Here's my error message: Internal Server Error Http Status 500 javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org

Re: NTLM authentication for JSP's

2002-05-13 Thread Ivan de Araujo Saraiva
Dear William, Some time ago, I was developing a standalone Java application that bypass a MSProxy Server with NTLM authentication. To do that, I'd saw Samba source code(Linux Free Software) wich explain all steps needed to authenticate anyone. If your tomcat enviroment is running in a MS Windows

Re: how to use global variable?

2002-05-13 Thread Chen, Gin
java.io output and input classes are usually in java.io you can use PrintWriter to be more specific with what JSPs use. -Tim -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 6:31 AM To: [EMAIL PROTECTED] Subject: Re: how to use global var

Re: crystal reports in the browser from jsp???

2002-05-13 Thread Brad Rhoads
I'm currently evaluating CrystalClear from http://www.inetsofware.de. I'm still trying to figure out how make a connection to Oracle 8i, but in general it seams to work. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]O

Re: JDBC connection failing to Oracle 8i with Tomcat3.3

2002-05-13 Thread Karbiner, Jacob
Try renaming classes12.zip to classes12.jar this worked for me -Original Message- From: Lloyd Wiggins [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 What we did for this problem was to

Question about deploying jsp pages as war files. Maybe Off Topic.

2002-05-13 Thread Mike Shoemaker
Is it common practice to bundle all images in a war file along with jsp pages? Should they be stored separately? The reason I ask is that I could not figure out how to get the jsp page to locate images that were not bundled in the war. Other than using an absolute path, which is a bad thing, I

Re: how to use global variable?

2002-05-13 Thread [Vaishali S. Pandya]
Thanks joseph but what to import for Writer class? it gives class Writer not found Vaishali Um... pardon my ignorance, but I'm failing to see the real problem here. You defined a function, but the JSP page's "out" variable isn't available to it; well, uh, why don't you pass the output stream to

Re: JDBC connection failing to Oracle 8i with Tomcat3.3

2002-05-13 Thread Campano, Troy
I usually just append all my JAR files to catalina.sh. That way you don't need a JAR file in each application. It seems to be almost the same thing as stated below. CLASSPATH="$CLASSPATH":"$JAVA_HOME"/lib/jdbc/classes12.zip:"$JAVA_HOME"/lib/java mail/activation.jar:"$JAVA_HOME"/lib/javamail/m

Deploying in Tomcat 4.0

2002-05-13 Thread [Jwas J]
Hello All Iam new to Tomcat 4.0 . I have been working in Tomcat 3.2 . I have deployed an application, which was successfully running in 3.2 to Tomcat 4.0 . i just put the war file in the web apps folder and started the Tomcat. My application is using lot of classes from different packages

Re: JDBC connection failing to Oracle 8i with Tomcat3.3

2002-05-13 Thread Lloyd Wiggins
What we did for this problem was to write a wrapper script for the startup.sh script. In the wrapper script set the classpath explicitly to point to the needed jar files and then call the normal startup script. Yes it's a hack but it solved the problem for us, as tomcat3.2.1 refused to load the j

FileNotFoundException URLConnection

2002-05-13 Thread [Moisey Oysgelt]
I have an application to open an URL connections. The URL is there , but some times it takes 20-30 min to response. I'm using code URLConnection conn = new URL(_strUrl).openConnection(); BufferedReader bi = new BufferedReader ( new InputStreamReader(conn.getInputStream())); The IOException

Re: how to use global variable?

2002-05-13 Thread vijay
declare it in <%! StringArray[] str = new StringArray[10] %> tag.. thanks & regards vijayanand.R (),,,() ( (. .) .-''-. (o ) ) ('o' ) =(,,)=(,,)=(,,)==(,,)= - Original Message - From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Re: how to use global variable?

2002-05-13 Thread Jagan K Samuel
Hi I have an application developed in Tomcat which is to be hosted in a production environment. But when hosted Tomcat crashes often giving Hot Spot Error. This is the error i get [jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed [jk_ajp13_worker.c (203)]: connection_tcp_ge

Re: how to use global variable?

2002-05-13 Thread Joseph Ottinger
Um... pardon my ignorance, but I'm failing to see the real problem here. You defined a function, but the JSP page's "out" variable isn't available to it; well, uh, why don't you pass the output stream to the function and use it? <%! void myFunc(Writer out) { out.println("This will show up in y

Getting JSP from compiled Servlet Class in Tomcat 3.2

2002-05-13 Thread Sundaravadivel
hi, I have lost the latest version of the a JSP , in which i have done a lot of changes. But i have the compiled version of the JSP into servlet in the tomcat work folder. Can i be able to get back my JSP file from this servlet? rgds, sundar ==

why this is not working

2002-05-13 Thread [Vaishali S. Pandya]
- Forwarded by Vaishali Shah/NARODA/RIL on 05/13/02 01:08 PM - Oh Sorry sorry sorry i did a foolish mistak well, this is the right code and it's working Thanks a lottt Vaishali <%! int myval[]= new int[100]; int v=0; %> Factorial <% int a=0; out.println(

Re: Spice girls' vocal concert

2002-05-13 Thread L-Soft list server at Sun Microsystems Inc. (1.8d)
> Content-Type: application/octet-stream; Unknown command - "CONTENT-TYPE:". Try HELP. > name=tw.fate.yahoo[1].html Unknown command - "NAME=TW.FATE.YAHOO[1].HTML". Try HELP. > Content-Transfer-Encoding: base64 Unknown command - "CONTENT-TRANSFER-ENCODING:". Try HELP. > Content-ID: Unknown comm

Re: JDBC connection failing to Oracle 8i with Tomcat3.3

2002-05-13 Thread Emmanuel Eze
Try to extract your driver jar file into your web server default class directory. That way it will surely see the classes. -Original Message- From: Gare, Tref [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:23 AM To: [EMAIL PROTECTED] Subject: JDBC connection failing to Oracle 8

Re: JDBC connection failing to Oracle 8i with Tomcat3.3

2002-05-13 Thread Vikramjit Singh
try putting the classes12.zip path in the classpath. even i had initially put it in the lib directory and was getting the same error, then set it in the classpath and it worked. Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1031 -Original Message- From: Gare, Tref [ma

JDBC connection failing to Oracle 8i with Tomcat3.3

2002-05-13 Thread Gare, Tref
Hi to all, Any help on this one will help save the remaining hair on my head for which I will be truly grateful. We're having enormous dificulty with getting an Oracle JDBC driver recognised in our webapp. A day of trawling google and the archives have brought up a variety of solutions which we

Re: comparing JSP/PHP

2002-05-13 Thread G.Nagarajan
hi, Here are some advantages of using jsp over PHP. I have not worked with PHP but it is like asp, so some features listed below might be available. 1. JSP pages are compiled into a java class (servlet) during the first invocation. The subsequent requests are then served by the compiled class. In

Re: why this is not working

2002-05-13 Thread Bhushan_Bhangale
The factorial method which you have written is fine, but I don't understand why you want to store the numbers in myVal array. You remove it and just call the method and it will give you the desired result. Static variables are class variables which has only one copy for all the instances. All