Connection Pool

2000-03-01 Thread amirali purteymur
Dear all friends, I have been using Oracle JDBC 8.1.6 library for connectivity to database in my JSP pages.I also use Sun Java WebServer.when I use that library in my IDE it could be compiled and run properly but when I deploy it to JavaWebSerer I get the following error : ClassNotFound, I add

Re: Display PROBLEM in text fields for JSP

2000-03-01 Thread Matt Krevs
Use value = "%=table.getCity()%" -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sivakumar S Sent: Sunday, 27 February 2000 10:47 To: [EMAIL PROTECTED] Subject: Display PROBLEM in text fields for JSP Hi

Modelling use cases with JSPs/Servlets

2000-03-01 Thread Ingo Schuster
Hi everybody, I have a question regarding the architecture with servlets and JSPs: I have seen many postings on these lists describing an architecture with _one_ servlet that acts as the central handler and processes _all_ requests. It chooses which action to be taken, executes that action and

Re: Display PROBLEM in text fields for JSP

2000-03-01 Thread Wes Biggs
It's as simple as just adding double quotes around the City name to define the boundaries of the string. If double quotes aren't used then you get the default behaviour that you described. Yes, but note that this approach leaves open the cross-site scripting security hole, for one thing. For

Re: Display PROBLEM in text fields for JSP

2000-03-01 Thread Lynn W. Deffenbaugh (Mr.)
Chris, At 09:54 AM 3/1/00 +1000, Chris Tuck wrote: input type="TEXT" name=City size="25" value="%=table.getCity()%" Does this also work if the DB field contains double-quotes? Are JSPs smart enough to encode the quotes, or does it still break? Lynn (D) - Compass Solutions, Inc.

Re: Display PROBLEM in text fields for JSP

2000-03-01 Thread Arun Thomas
Just put quotes around your value: input type="TEXT" name="City" size="25" value="%=table.getCity()%" / Indeed, the new XHTML spec recommended by the W3C requires quotes around all parameters. -AMT -Original Message- From: A mailing list about Java Server Pages specification

Re: jsp init() method doubt

2000-03-01 Thread Kishore Raghavan
Please note that the jspInit must be declared in a declaration using %! instead of % Kishore -Original Message- From: Kishore Raghavan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 29, 2000 5:17 PM To: munu praveen; [EMAIL PROTECTED] Subject: RE: jsp init() method doubt Dear

Re: jsp init() method doubt

2000-03-01 Thread Kishore Raghavan
Dear Munu, Insert a scriplet as given below % public void jspInit() { //your code goes here } % This method is run only once when the servlet gets loaded Kishore Raghavan Synapta Inc, CA -Original Message- From: A mailing list about Java Server

Problem downloading binaries (JSP to Servlet to Browser)

2000-03-01 Thread Cor Ruiten
I have checked the archives and have been unable to find a resolution to my problem. I am interested in sending a binary data stream (attachment) to the browser so that the end-user can save these attachments on their local workstation. I am able to send the attachment to the browser, and then

Re: public static final variables in a jsp page

2000-03-01 Thread Hans Bergsten
Martin Leboeuf wrote: Hi ! I am using an ensemble of predefined constants, grouped together in a WebAppConstants class, which looks like this : package com.my.package.name; public class MyConstants { public final static int CONSTANT_NO_1 = 0; public final static int

Re: Servlet/JSP paths in Tomcat/JSWDK

2000-03-01 Thread Craig R. McClanahan
Oz Kologlu wrote: We are currently looking for a "Servlet/JSP implementation version independant" way of accessing our web site so that it is as portable as possible between servers. So far we have been developing under JSWDK and we have run into a little grief with paths converting to

Re: java.sql.exception : network adapter could not able to establ ish connection

2000-03-01 Thread Ashwani Kalra
There is some limit on the no of connection that can remain open to Oracle.Are you using connection pooling or properly closing the connection after use so that it can be returned to the connection pool Ashwani -- From: Sharat Babu Reply To: [EMAIL PROTECTED] Sent:

Re: Jsp Book

2000-03-01 Thread Duane Fields
Web Development with JavaServer Pages will be available in March http://www.amazon.com/exec/obidos/ASIN/1884777996/deepmagic http://www.manning.com/Fields -- Duane Fields [EMAIL PROTECTED] Learn Web Development with JSP! http://www.deepmagic.com/jsp

Re: Display PROBLEM in text fields for JSP

2000-03-01 Thread Ashwani Kalra
Use double quotes to surround the display value. If no quotes are there then only the first continuous token (withoud spaces is picked rest is ignored) Ashwani -- From: Sivakumar S Reply To: Sivakumar S Sent: Sunday, February 27, 2000 5:16 AM To: [EMAIL

Re: problem with sessions and jsp

2000-03-01 Thread Arni Raghu
Try using session.getNameValues() or getValueNames() ( I always forget which one!) that should return u a list of all the session variables. Use this to debug and see exactly at what page u lose the session variables..might help in debugging..other thing is increasing the session timeout

Re: My boss needs convincing.

2000-03-01 Thread kevin carothers
One thing to consider is that it is ridiculously easy to decompile java class files... you have to obfuscate them, and then completely re-test. Usually complicated problems don't obfuscate well. Even if you write server apps, the first person you sell your server-app to can decompile it,

Re: reload/post handling problem with MS

2000-03-01 Thread Shrisha Radhakrishna
I use IE 5. Works fine here. I dont get the retry/cancel dialog box. In your real form, are you using data fields that have been passed on to this page? - Original Message - From: "Simon Jakesch" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 27, 2000 8:36 PM Subject:

How to call a method in JSP !!!!

2000-03-01 Thread satya b
Hi gueys, I am converting servlets to jsp.Actually in servlets we will define class and methods.In case of JSP we won't define classes,in that case how to call a method in JSP. I got the error msg as .. c:\j2sdkee1.2\repository\RICH-S\web\ganrt\_0005cRegister_0002ejspRegister_jsp_0.java:390:

Re: java.sql.exception : network adapter could not able to establish connection

2000-03-01 Thread Scott Stirling
Well, the basic idea is that your Oracle driver is trying to make a database connection and is failing to do so. It could be you specified the wrong URL/port/host to the db, or the wrong username and/or password. I'm not too familar with Oracle, but that's the general idea. Sorry if that's too

Re: Pop-Up Form Window?

2000-03-01 Thread Eric M. Andersen
Bill, onSubmit="window.close()" will close the browser window immediately, before the HTTP request can get to your servlet, and hence before your servlet gets the chance to execute. You're going to need to let it execute, so my suggestion would be to have the servlet forward to an almost empty

design

2000-03-01 Thread Fernando Ribeiro
I am now designing a method which takes a java.io.JspWriter or a java.io.BufferedWriter as a parameter. The method then writes to the parameter. public void test(JspWriter _out); These classes have a common superclass, java.io.Writer but, unhappily, that object does not feature the useful

Re: Using UseBean tag in weblogic 4.5.1

2000-03-01 Thread Ted Fritsch
Try putting your bean into a package (say, package try), then placing that package dir (containing the bean classfile) into the classes directory for the server. Then, use that package name in referenceing the class in the useBean tag. jsp:useBean id="try1" class="try.try1" scope="page" / I

Re: This List

2000-03-01 Thread JavierG
Personally, I subscribe in DIGEST mode and go through a day of postings at a time... Well, I tried subscribing in DIGEST mode also, but didn't work. I set my list options as DIGEST- NO MAIL (I went to www.jsp-interest.com to do this) and wait for a week, nothing happened, except that I received

FW: Tomcat 3 not accepting form parameters in the doPost() method

2000-03-01 Thread Gacesa, Petar
If you are using Linux try downloading the mod_jserv that comes with Tomcat 3.1 - that worked for me. I've heard that on Windows NT it actually matters which browser you use to download the DLL and that you should use IE!?!?!?!? Petar -Original Message- From: Harris Wulfson

unsubscribe me

2000-03-01 Thread Thomas, Cathy
=== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html

Re: Using UseBean tag in weblogic 4.5.1

2000-03-01 Thread Shriver, Ryan
Is your bean in a package? I've used JSP's w/ Weblogic 4.5.1 and you must put the fully qualified name in the useBean tag. For instance: package com.simple.example public class try1{ } @page import="com.simple.example" jsp:useBean id="try1" class="com.simple.example.try1" scope="page" /

ASP to JSP

2000-03-01 Thread Kathy Wargo
I see there have been many of you that have gone from developing an ASP application to developing a JSP application. I would like to know the learning curve, and suggestions, a template, some idea of the complexity of moving to the JSP world. I know applications vary but with your experience

restart web server whenever want to relo

2000-03-01 Thread Jianjun Fu
Hi, there, I have been using IIS and ServletExec from NewAtalanta to develop jsp files. I am happy with ServletExec except one thing. After the jsp run and bean file are loaded, you can change the bean files but the changes will not be reflected (loaded) until you stop and restart the

Re: Architecture- Use of Servlets

2000-03-01 Thread Larry Rogers
Dan, I too have different users and permissions for various applications in our intranet. If I understand you correctly, basically all your apps run in the same ServletContext as the framework application, and you define an application using its controller servlet. Is that correct? If so,

Problem running a Bean

2000-03-01 Thread Balasubramaniam, Krishnamoorthy (IndSys,IM)
Hi, I am trying to run a JSP page with a Bean. I am getting the following error. I have written a Simple bean to write some value with "param" option and retrieve it. Could some one help me? --- Error getting compiled page The

Security

2000-03-01 Thread Nishant Kaushik
hi all, i tried using the getScheme method of the Servlet Request object. basically i am trying to extract whether the jsp is being accessed via https or http. however, even for a page accessed by https, it returns http. does anyone know what i need to do to get this method to work, or

Re: outputting a fileinputstream

2000-03-01 Thread Glover, Andrew
Title: RE: outputting a fileinputstream To add to Craig's statements, I would also chain a buffered reader to the FileReader for enhanced efficiency: File file = new File(./public_html/xml/cc.xml); BufferedReader fis = new BufferedReader(new FileReader(file)); Good luck! Regards,

Re: beans accessing database pool

2000-03-01 Thread Jacob W Anderson
Don't forget to add mutex locking around your connection pool object, otherwise you will have a race condition and end up with multiple instances of the connection pool. class SingletonConnectionPool { private static SingletonConnectionPool m_conPool = null; private static

Re: outputting a fileinputstream

2000-03-01 Thread sampathkumar rangarajan
The reason is so simple ,you are constructing the byte array but you are not storing any contents in it. try this code it will work. File file = new File("./public_html/xml/cc.xml"); FileInputStream fis = new FileInputStream(file); byte[] data = new byte[fis.available()];

Displaying databases via JSP

2000-03-01 Thread Larry Mulcahy
Corbin Hoenes writes: I am wondering which is the most effective way to display database information (i.e. say a table) w/JSP. I can't really find any examples on or anything so here is what I have come up with: create a bean that has 3 methods openDB() returnRow() closeDB()