Re: Size limit of a jsp in JSP 0.92
We are using jsp 0.92 and have many of what I deem large pages (~60 pages printed). We have run into problems when our pages contain many lines of JavaScript at the top of the html. By rearranging the code and putting the Java scriptlets above the JavaScript, the pages were able to compile. (some kind of buffer problem maybe) This might be your problem if you're using a lot of JavaScript too. -Original Message- From: Pankaj Chaubey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 20, 2000 8:50 AM To: [EMAIL PROTECTED] Subject: Size limit of a jsp in JSP 0.92 Hi, We have developed an application using jsp 0.92/servlets on NES 4.0. The JSPs don't compile when they exceed some size limit. Can anyone provide any inputs on the same as we have a deadline to meet. Kindly respond at the earliest. Looking forward for a reply. Regards, Pankaj _ Get Your Free Email At, http://www.rediffmail.com For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
include tag and iPlanet web server
Any one having problems using iPlanet web server 4.0 and jsp:include or %@ include tags? I have tried various combos of syntax and used non-existent file names, but the server doesn't even give me any messages or errors (even in the error log), it just ignores the tag. I want to put the same footer at the bottom of each of my pages, so I was adding before the /body and /html tags this: %@ include file="Footer.jsp" % Any ideas? I checked the configuration of the web server, but found nothing. Jennifer Buffington Senior Web Application Developer ACV Insurance Services, Inc. 425.486.1671 x239 www.acv-ins.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Undefined variable or class name
Yup, rek only has scope for the try block, you are trying to println outside of rek's scope. Put the out.println statement after your SELECT statement before the catch block: try { etc... ResultSet rek = stmt.executeQuery ("SELECT TOTAL FROM COFFEES WHERE COF_NAME='ARABICA'"); out.println(rek.getString()); } catch etc... -Original Message- From: Erwan TROEL [mailto:[EMAIL PROTECTED]] Sent: Friday, August 25, 2000 7:31 AM To: [EMAIL PROTECTED] Subject: Undefined variable or class name %@ page info="database handler"% %@ page import="java.io.*"% %@ page import="java.util.*"% %@ page import="java.sql.*"% %@ page import="javax.servlet.*"% %@ page import="javax.servlet.http.*"% % try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url="jdbc:odbc:test"; Connection con=DriverManager.getConnection(url, "administrator", "password"); Statement stmt = con.createStatement(); ResultSet rek = stmt.executeQuery ( "SELECT TOTAL FROM COFFEES WHERE COF_NAME='ARABICA'"); } catch (Exception e) {} out.println(rek.getString()); % Does any body know the Pb? error 500: org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta-tomcat\work\localhost_8080\_0002ftest_0002ejsptest_jsp_3.java: 98: Undefined variable or class name: rek out.println(rek.getString()); ^ 1 error === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: please help
use "connection" where you have "con", that will solve your error about "con" being undefined. The rest of the errors look like a CLASSPATH error. -Original Message- From: sumit shah [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 7:37 AM To: [EMAIL PROTECTED] Subject: please help hi all, After changing the drivers and all i am now getting the following errors. I am pasting the code snippet and also the errors. I think the code is unable to find all the java classes but i have already installed jdk 1.1.7 code snippet: Connection connection; try { Class.forName("com.ibm.db2.jdbc.app.DB2Driver "); String url = "jdbc:db2:JVCLIVE"; String username = "DB2ADMIN"; String password = "frisky"; connection = DriverManager.getConnection(url, username, password); Statement stmt = con.createStatement(); String query="SELECT DB2ADMIN.CATEGORY.CATEGORY_ID,DB2ADMIN.CATEGORY.CATEGORY_NAME FROM DB2ADMIN.CATEGORY"; ResultSet RS=stmt.executeQuery(query); while(RS.next()) out.println("RS(1)"); RS.close(); con.close(); } catch (ClassNotFoundException e) { out.println("Could not load database driver!");} catch (SQLException e) { out.println("Could not connect to the database!");} % The error statement are: d:\WebSphere\Studio\check_out\Jvcpro\connect_jsp_1.java:75: Class d_0003a.WebSphere.Studio.check_0005fout.Jvcpro.Connection not found in type declaration. ^ d:\WebSphere\Studio\check_out\Jvcpro\connect_jsp_1.java:81: Undefined variable or class name: DriverManager ^ d:\WebSphere\Studio\check_out\Jvcpro\connect_jsp_1.java:82: Class d_0003a.WebSphere.Studio.check_0005fout.Jvcpro.Statement not found in type declaration. ^ d:\WebSphere\Studio\check_out\Jvcpro\connect_jsp_1.java:82: Undefined variable or class name: con ^ d:\WebSphere\Studio\check_out\Jvcpro\connect_jsp_1.java:84: Class d_0003a.WebSphere.Studio.check_0005fout.Jvcpro.ResultSet not found in type declaration. ^ please help. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets