Re: how to use global variable?
thanks to Bhushan and ss but i had tried it also before mail u but i got some other errors can u please try to solve this and mail me the code? can i use static variables in recursion? as my v will be increased in each call of fact(), can i take it static? and what does it mean by static function and nonstatic function? pls explain and if possible try this code and give me a running code pleaassee because i need it urgently as i want to use this recursion in my other program. ThankX in advance Vaishali inside static method u cannot call a non-static variable. make the variable static... s.subramanian IonIdea Enterprise Solutions Bangalore - Original Message - From: [Vaishali S. Pandya] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 10:40 AM Subject: Re: how to use global variable? Can't make a static reference to nonstatic variable myval this is the error i get in this code HTML HEAD TITLE Factorial /TITLE /HEAD BODY %! int myval[]= new int[100]; int v=0; % % int a=0; out.println(v); for (a=0;av;a++){ out.println(myval[a]); } out.println(fact(5)); % %! public static int fact(int i){ myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % /BODY /HTML By defining the variable like this %! file://declare global variable here % -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: how to use global variable? hello all good morning as my prev que, i tried to use function and not able to use out.println in function so now i want to use a global array and want to add all values in array and will print that array in main code but i don't know how to make an array global. see the code HTML HEAD TITLE Factorial /TITLE /HEAD BODY %! public static int fact(int i){ //System.out.println(i); myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % % for(a=0;av;a++) out.println(myval[a]); out.println(fact(5)); % /BODY /HTML here array myval and int v must be global so i can use it in main code as well as in function how? ThankX Vaishali Reliance Ind Ltd Ahmedabad === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
why this is not working
No completime error is there but the output is unexpected HTML HEAD %! int myval[]= new int[100]; int v=0; % TITLE Factorial /TITLE /HEAD BODY % int a=0; out.println(v); %br% for (a=0;av;a++){ out.println(myval[a]); } out.println(fact(5)); % %! public int fact(int i){ myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % /BODY /HTML === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: why this is not working
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 the instances share the same reference of those variables. So if a instance change its value to some xyz then the other instance when refer the variable it will give the xyz value. To call Static method on e doesn't need to instantiate the class, just by saying Class.method it can access the method. Normally the methods which doesn't change the state of the object can be made static. Hope this helps. -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 11:24 AM To: [EMAIL PROTECTED] Subject: why this is not working No completime error is there but the output is unexpected HTML HEAD %! int myval[]= new int[100]; int v=0; % TITLE Factorial /TITLE /HEAD BODY % int a=0; out.println(v); %br% for (a=0;av;a++){ out.println(myval[a]); } out.println(fact(5)); % %! public int fact(int i){ myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % /BODY /HTML === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: comparing JSP/PHP
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 the case of PHP, the code is interpreted and executed for each request. 2. JSP uses java code while PHP uses its own syntax. 3. We can easily use OOPs techniques in jsp. Complex code can be put into java classes and they can be invoked from the jsp page. We can invoke the java interpreter from PHP but that would not be an elegant solution. 4. JSP provides tag libraries which can be used to hide the java code even further. Basically, in my opinion, if the client's applications needs only some simple scripting then PHP will be a good option. If there are lots of complex logic, with database access etc then jsp with servlets would be a better option. Writing lots of loops, ifs and exceptions in a page mixed with html and javascript will a nightmare. Then you also will have to worry about the html design etc. regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lynn Sent: Monday, May 13, 2002 6:28 AM To: [EMAIL PROTECTED] Subject: comparing JSP/PHP OK, so I got a bit of an odd question here. I've been programming internet applications for a few years now and I started with JSP because of a previous background with Java applications. However, I've found that in my area, getting shared hosting with Java support is the next closest thing to impossible and is usually very expensive. For this reason I've had to switch to mostly using PHP. I would be very interested in knowing what the comparitive strengths and weaknesses are between the two languages if anyone out the is knowledgable in both. Though monetary limitations usually force me into PHP, I would like to be able to make an educated decision on wether it's worth pushing a client towards JSP. Thanks much, Daniel Lynn Mystic Productions == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
JDBC connection failing to Oracle 8i with Tomcat3.3
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've gone through but so far to no avail.. The base error we're getting is the following Root cause:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i Todate we have: * downloaded the oracle JDBC driver classes12.zip and dumped it into the the tomcat\lib directory both as the original zip and then renamed as a jar - no success * Tried it in the specific web-app's lib folder. * Edited the class path such that wherever it is can be seen by the jdk and attempted to run a small test app/class * Expanded the zip file into the above directories one by one Our connection code looks pretty standard Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123:dbname,user ,pwd); but we're getting nowhere. Does anyone have any thoughts? Thanks in advance Tref Gare === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JDBC connection failing to Oracle 8i with Tomcat3.3
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 [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 1:23 AM To: [EMAIL PROTECTED] Subject: JDBC connection failing to Oracle 8i with Tomcat3.3 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've gone through but so far to no avail.. The base error we're getting is the following Root cause:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i Todate we have: * downloaded the oracle JDBC driver classes12.zip and dumped it into the the tomcat\lib directory both as the original zip and then renamed as a jar - no success * Tried it in the specific web-app's lib folder. * Edited the class path such that wherever it is can be seen by the jdk and attempted to run a small test app/class * Expanded the zip file into the above directories one by one Our connection code looks pretty standard Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123:dbname,user ,pwd); but we're getting nowhere. Does anyone have any thoughts? Thanks in advance Tref Gare === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JDBC connection failing to Oracle 8i with Tomcat3.3
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 8i with Tomcat3.3 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've gone through but so far to no avail.. The base error we're getting is the following Root cause:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i Todate we have: * downloaded the oracle JDBC driver classes12.zip and dumped it into the the tomcat\lib directory both as the original zip and then renamed as a jar - no success * Tried it in the specific web-app's lib folder. * Edited the class path such that wherever it is can be seen by the jdk and attempted to run a small test app/class * Expanded the zip file into the above directories one by one Our connection code looks pretty standard Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123:dbname,user ,pwd); but we're getting nowhere. Does anyone have any thoughts? Thanks in advance Tref Gare === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Spice girls' vocal concert
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: Ie5pxhR490PYO6N00 Unknown command - "CONTENT-ID:". Try HELP. PGh0bWw+CjxoZWFkPgo8dGl0bGU+WWFob28hqV+8r7riqVLAXTwvdGl0bGU+CjxtZXRhIGh0 Unknown command - "PGH0BWW+CJXOZWFKPGO8DGL0BGU+WWFOB28HQV+8R7RIQVLAXTWVDGL0BGU+CJXTZXRHIGH0". Try HELP. dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWJp Unknown command - "DHATZXF1AXY9IKNVBNRLBNQTVHLWZSIGY29UDGVUDD0IDGV4DC9ODG1SOYBJAGFYC2V0PWJP". Try HELP. ZzUiPgo8c2NyaXB0IHNyYz0naHR0cDovL3R3LnlpbWcuY29tL2kvdHcvYWR2L2tfaG91c2Vh Unknown command - "ZZUIPGO8C2NYAXB0IHNYYZ0NAHR0CDOVL3R3LNLPBWCUY29TL2KVDHCVYWR2L2TFAG91C2VH". Try HELP. ZHMvMjAwMTA4MDJfZmxvYXRfc2VyaWVzLmpzJyB0eXBlPSd0ZXh0L2phdmFzY3JpcHQnPjwv Unknown command - "ZHMVMJAWMTA4MDJFZMXVYXRFC2VYAWVZLMPZJYB0EXBLPSD0ZXH0L2PHDMFZY3JPCHQNPJWV". Try HELP. c2NyaXB0Pgo8L2hlYWQ+CjxsaW5rIHJlbD1zdHlsZXNoZWV0IHR5cGU9InRleHQvY3NzIiBo Unknown command - "C2NYAXB0PGO8L2HLYWQ+CJXSAW5RIHJLBD1ZDHLSZXNOZWV0IHR5CGU9INRLEHQVY3NZIIBO". Try HELP. cmVmPSIvYjUuY3NzIj4KPGJvZHkgYmdjb2xvcj0iI0ZGRkZGRiIgdGV4dD0iIzAwMDAwMCIg Unknown command - "CMVMPSIVYJUUY3NZIJ4KPGJVZHKGYMDJB2XVCJ0II0ZGRKZGRIIGDGV4DD0IIZAWMDAWMCIG". Try HELP. All subsequent commands have been flushed. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
why this is not working
- 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 HTML HEAD %! int myval[]= new int[100]; int v=0; % TITLE Factorial /TITLE /HEAD BODY % int a=0; out.println(fact(5)); out.println(v); %br% for (a=0;av;a++){ out.println(myval[a]); } % %! public int fact(int i){ myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % /BODY /HTML === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Getting JSP from compiled Servlet Class in Tomcat 3.2
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 ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: how to use global variable?
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 your page now. AMAZING.); } % This isn't rocket science; just Java. From: Bhushan_Bhangale [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: how to use global variable? Date: Mon, 13 May 2002 10:36:15 +0530 By defining the variable like this %! //declare global variable here % -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: how to use global variable? hello all good morning as my prev que, i tried to use function and not able to use out.println in function so now i want to use a global array and want to add all values in array and will print that array in main code but i don't know how to make an array global. see the code HTML HEAD TITLE Factorial /TITLE /HEAD BODY %! public static int fact(int i){ //System.out.println(i); myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % % for(a=0;av;a++) out.println(myval[a]); out.println(fact(5)); % /BODY /HTML here array myval and int v must be global so i can use it in main code as well as in function how? ThankX Vaishali Reliance Ind Ltd Ahmedabad === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com --- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: how to use global variable?
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_get_message: Error - jk_tcp_socket_recvfull failed [jk_ajp13_worker.c (621)]: Error reading request [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_ajp13_worker.c (621)]: Error reading request [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 61 [jk_ajp13_worker.c (586)]: Error connecting to the Tomcat process. Anyone knows the reason for this. Or could anyone suggest better servers which could be reliable to be hosted in production? With Best Regards Jagan K Samuel === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: how to use global variable?
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: Monday, May 13, 2002 10:11 AM Subject: how to use global variable? hello all good morning as my prev que, i tried to use function and not able to use out.println in function so now i want to use a global array and want to add all values in array and will print that array in main code but i don't know how to make an array global. see the code HTML HEAD TITLE Factorial /TITLE /HEAD BODY %! public static int fact(int i){ //System.out.println(i); myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % % for(a=0;av;a++) out.println(myval[a]); out.println(fact(5)); % /BODY /HTML here array myval and int v must be global so i can use it in main code as well as in function how? ThankX Vaishali Reliance Ind Ltd Ahmedabad === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
FileNotFoundException URLConnection
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 generates in the second line of this code after 15 min of waiting. Does anyone know how to increase waiting time.. Thanks Moisey --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/02 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JDBC connection failing to Oracle 8i with Tomcat3.3
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 jar files in the WEB-INF directory. Good luck. -Original Message- From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 1:37 AM To: [EMAIL PROTECTED] Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 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 8i with Tomcat3.3 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've gone through but so far to no avail.. The base error we're getting is the following Root cause:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i Todate we have: * downloaded the oracle JDBC driver classes12.zip and dumped it into the the tomcat\lib directory both as the original zip and then renamed as a jar - no success * Tried it in the specific web-app's lib folder. * Edited the class path such that wherever it is can be seen by the jdk and attempted to run a small test app/class * Expanded the zip file into the above directories one by one Our connection code looks pretty standard Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123: dbname,user ,pwd); but we're getting nowhere. Does anyone have any thoughts? Thanks in advance Tref Gare == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Deploying in Tomcat 4.0
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. I got the first page but after submitting the page iam getting an error... I set Catalina_Home and Tomcat_Home .. Do i have to do anything else ?? Please advice ... A Servlet Exception Has Occurred org.apache.jasper.JasperException: Unable to compile class for JSPimport axsbagtracing.axsBTR_User; ^ import axsbagtracing.exception.WTException; ^ 2 errors at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 2002-05-13 19:49:53 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSPimport axsbagtracing.axsBTR_User; ^ import axsbagtracing.exception.WTException; ^ 2 errors at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JDBC connection failing to Oracle 8i with Tomcat3.3
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/mail.jar thanks! [ t r o y ] -Original Message- From: Lloyd Wiggins [ mailto:[EMAIL PROTECTED] 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 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 jar files in the WEB-INF directory. Good luck. -Original Message- From: Emmanuel Eze [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 1:37 AM To: [EMAIL PROTECTED] Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 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] mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:23 AM To: [EMAIL PROTECTED] Subject: JDBC connection failing to Oracle 8i with Tomcat3.3 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've gone through but so far to no avail.. The base error we're getting is the following Root cause:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i Todate we have: * downloaded the oracle JDBC driver classes12.zip and dumped it into the the tomcat\lib directory both as the original zip and then renamed as a jar - no success * Tried it in the specific web-app's lib folder. * Edited the class path such that wherever it is can be seen by the jdk and attempted to run a small test app/class * Expanded the zip file into the above directories one by one Our connection code looks pretty standard Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123: dbname,user ,pwd); but we're getting nowhere. Does anyone have any thoughts? Thanks in advance Tref Gare == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set
Re: how to use global variable?
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 the function and use it? %! void myFunc(Writer out) { out.println(This will show up in your page now. AMAZING.); } % This isn't rocket science; just Java. From: Bhushan_Bhangale [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: how to use global variable? Date: Mon, 13 May 2002 10:36:15 +0530 By defining the variable like this %! //declare global variable here % -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: how to use global variable? hello all good morning as my prev que, i tried to use function and not able to use out.println in function so now i want to use a global array and want to add all values in array and will print that array in main code but i don't know how to make an array global. see the code HTML HEAD TITLE Factorial /TITLE /HEAD BODY %! public static int fact(int i){ //System.out.println(i); myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % % for(a=0;av;a++) out.println(myval[a]); out.println(fact(5)); % /BODY /HTML here array myval and int v must be global so i can use it in main code as well as in function how? ThankX Vaishali Reliance Ind Ltd Ahmedabad === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com --- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Question about deploying jsp pages as war files. Maybe Off Topic.
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 didn't see how to make it work. Please forgive the rather newbie question, I have lots of experience writing back end stuff and Im trying to learn more about UI portion. Thanks in advance. Mike === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JDBC connection failing to Oracle 8i with Tomcat3.3
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 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 jar files in the WEB-INF directory. Good luck. -Original Message- From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 1:37 AM To: [EMAIL PROTECTED] Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 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 8i with Tomcat3.3 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've gone through but so far to no avail.. The base error we're getting is the following Root cause:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i Todate we have: * downloaded the oracle JDBC driver classes12.zip and dumped it into the the tomcat\lib directory both as the original zip and then renamed as a jar - no success * Tried it in the specific web-app's lib folder. * Edited the class path such that wherever it is can be seen by the jdk and attempted to run a small test app/class * Expanded the zip file into the above directories one by one Our connection code looks pretty standard Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123: dbname,user ,pwd); but we're getting nowhere. Does anyone have any thoughts? Thanks in advance Tref Gare == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: crystal reports in the browser from jsp???
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]]On Behalf Of Elango Palani Sent: Monday, May 13, 2002 1:07 AM To: [EMAIL PROTECTED] Subject: crystal reports in the browser from jsp??? Hai All, How will i call a crystal reports in the browser from jsp? Regards Elango Palani === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: how to use global variable?
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 variable? 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 the function and use it? %! void myFunc(Writer out) { out.println(This will show up in your page now. AMAZING.); } % This isn't rocket science; just Java. From: Bhushan_Bhangale [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: how to use global variable? Date: Mon, 13 May 2002 10:36:15 +0530 By defining the variable like this %! //declare global variable here % -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: how to use global variable? hello all good morning as my prev que, i tried to use function and not able to use out.println in function so now i want to use a global array and want to add all values in array and will print that array in main code but i don't know how to make an array global. see the code HTML HEAD TITLE Factorial /TITLE /HEAD BODY %! public static int fact(int i){ //System.out.println(i); myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % % for(a=0;av;a++) out.println(myval[a]); out.println(fact(5)); % /BODY /HTML here array myval and int v must be global so i can use it in main code as well as in function how? ThankX Vaishali Reliance Ind Ltd Ahmedabad === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com --- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: NTLM authentication for JSP's
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 You can write a class accessing MS Dll code throught JNI. I have all these sources and links at home. If you will are interested, mail me. Best Regards, Ivan Saraiva -Original Message- From: William Storey To: [EMAIL PROTECTED] Sent: 11/5/2002 23:17 Subject: NTLM authentication for JSP's Does there exist a mechanism by which Tomcat can be made to use NTLM authentication? * * * * * * An existing web application that is written in Perl (with Apache as the webserver) is to be enhanced and re-written in JSP (with Tomcat as the JSP/servlet engine). The existing Perl and Apache website is configured to use mod_ntlm, in order to establish the identity of the Windows desktop user running IE5.01 that is accessing the Perl page; in order to determine whether the user is authorized for that particular page, the Perl script looks up the username in a website-specific database. That is, the authentication process is handled via the normal login to NT (later, the Web browser supplies the NT username information to the web server when the Web browser resubmits its request as an authenticated request); the per-page authorization process is internal to the web application. The problem for the re-write in JSP is that while Tomcat does support Basic authentication, Digest authentication, and Forms authentication, I have not been able to find a mechanism by which Tomcat can made to use NTLM authentication. I do not wish to start a discussion on the wisdom of using NTLM in the manner described; this is the existing behavior that the re-write in JSP is to mimic. I would be grateful for any hints towards the answer of the question: can Tomcat be configured (or extended) to use NTLM authentication? Thanks! Bill Storey UNICOM ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Can't run any JSPs (including the examples), but servlets run fine...
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.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 5) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j ava:202) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 6) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at
Re: how to use global variable?
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 PROTECTED] Subject: Re: how to use global variable? Date: Mon, 13 May 2002 16:01:13 +0530 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 the function and use it? %! void myFunc(Writer out) { out.println(This will show up in your page now. AMAZING.); } % This isn't rocket science; just Java. From: Bhushan_Bhangale [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: how to use global variable? Date: Mon, 13 May 2002 10:36:15 +0530 By defining the variable like this %! //declare global variable here % -Original Message- From: [Vaishali S. Pandya] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: how to use global variable? hello all good morning as my prev que, i tried to use function and not able to use out.println in function so now i want to use a global array and want to add all values in array and will print that array in main code but i don't know how to make an array global. see the code HTML HEAD TITLE Factorial /TITLE /HEAD BODY %! public static int fact(int i){ //System.out.println(i); myval[v++] = i; if (i==1){ return i; } return i*fact(i-1); } % % for(a=0;av;a++) out.println(myval[a]); out.println(fact(5)); % /BODY /HTML here array myval and int v must be global so i can use it in main code as well as in function how? ThankX Vaishali Reliance Ind Ltd Ahmedabad === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com --- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp
Re: Question about deploying jsp pages as war files. Maybe Off Topic.
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: [EMAIL PROTECTED] Subject: Question about deploying jsp pages as war files. Maybe Off Topic. Date: Mon, 13 May 2002 10:11:50 -0500 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 didn't see how to make it work. Please forgive the rather newbie question, I have lots of experience writing back end stuff and Im trying to learn more about UI portion. Thanks in advance. Mike === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Inheritance in JSP...
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 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Inheritance in JSP...
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 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 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Inheritance in JSP...
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 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 === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Question about deploying jsp pages as war files. Maybe Off Topic.
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 specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Joseph Ottinger Sent: Monday, May 13, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: Re: Question about deploying jsp pages as war files. Maybe Off Topic. 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: [EMAIL PROTECTED] Subject: Question about deploying jsp pages as war files. Maybe Off Topic. Date: Mon, 13 May 2002 10:11:50 -0500 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 didn't see how to make it work. Please forgive the rather newbie question, I have lots of experience writing back end stuff and Im trying to learn more about UI portion. Thanks in advance. Mike === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JDBC connection failing to Oracle 8i with Tomcat3.3
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 default anyway.. anyone know why it isn't - in version 3.3 at least). All is now well and Tomcat and oracle are once again friends.. thanks for the help. Tref -Original Message- From: Lloyd Wiggins [SMTP:[EMAIL PROTECTED]] Sent: Tuesday,14 May 2002 12:44 To: [EMAIL PROTECTED] Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 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 jar files in the WEB-INF directory. Good luck. -Original Message- From: Emmanuel Eze [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 1:37 AM To: [EMAIL PROTECTED] Subject: Re: JDBC connection failing to Oracle 8i with Tomcat3.3 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 8i with Tomcat3.3 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've gone through but so far to no avail.. The base error we're getting is the following Root cause:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The environment is NT4, Tomcat 3.3, jdk1.3.1_01 and Oracle 8i Todate we have: * downloaded the oracle JDBC driver classes12.zip and dumped it into the the tomcat\lib directory both as the original zip and then renamed as a jar - no success * Tried it in the specific web-app's lib folder. * Edited the class path such that wherever it is can be seen by the jdk and attempted to run a small test app/class * Expanded the zip file into the above directories one by one Our connection code looks pretty standard Class.forName(oracle.jdbc.driver.OracleDriver); Connection conn = DriverManager.getConnection(jdbc:oracle:thin:@123.123.12.123: dbname,user ,pwd); but we're getting nowhere. Does anyone have any thoughts? Thanks in advance Tref Gare == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: comparing JSP/PHP
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 [mailto:[EMAIL PROTECTED]] On Behalf Of G.Nagarajan Sent: Monday, May 13, 2002 4:16 AM To: [EMAIL PROTECTED] Subject: Re: comparing JSP/PHP 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 the case of PHP, the code is interpreted and executed for each request. 2. JSP uses java code while PHP uses its own syntax. 3. We can easily use OOPs techniques in jsp. Complex code can be put into java classes and they can be invoked from the jsp page. We can invoke the java interpreter from PHP but that would not be an elegant solution. 4. JSP provides tag libraries which can be used to hide the java code even further. Basically, in my opinion, if the client's applications needs only some simple scripting then PHP will be a good option. If there are lots of complex logic, with database access etc then jsp with servlets would be a better option. Writing lots of loops, ifs and exceptions in a page mixed with html and javascript will a nightmare. Then you also will have to worry about the html design etc. regards, Nagarajan. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lynn Sent: Monday, May 13, 2002 6:28 AM To: [EMAIL PROTECTED] Subject: comparing JSP/PHP OK, so I got a bit of an odd question here. I've been programming internet applications for a few years now and I started with JSP because of a previous background with Java applications. However, I've found that in my area, getting shared hosting with Java support is the next closest thing to impossible and is usually very expensive. For this reason I've had to switch to mostly using PHP. I would be very interested in knowing what the comparitive strengths and weaknesses are between the two languages if anyone out the is knowledgable in both. Though monetary limitations usually force me into PHP, I would like to be able to make an educated decision on wether it's worth pushing a client towards JSP. Thanks much, Daniel Lynn Mystic Productions == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Tomcat Crash Problem
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_get_message: Error - jk_tcp_socket_recvfull failed [jk_ajp13_worker.c (621)]: Error reading request [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [jk_ajp13_worker.c (621)]: Error reading request [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 61 [jk_ajp13_worker.c (586)]: Error connecting to the Tomcat process. Anyone knows the reason for this. Or could anyone suggest better servers which could be reliable to be hosted in production? With Best Regards Jagan K Samuel With Best Regards Jagan K Samuel === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: can't use out.println in function
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 Hello is not printed why? no compile error is given Regards Vaishali Reliance Ind Ltd Ahmedabad === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002
JDBC Connection close
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 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002