Re: When should I update the database?

2005-10-24 Thread Ming Li
Thank you so much for helping me out, Chris! ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-inter

Re: When should I update the database?

2005-10-21 Thread Chris Pratt
Put a reference to the data that needs to be saved to the database in the Object that implements HttpSessionBindingListener.  Then you will have access to it when the valueUnbound() method is called.   (*Chris*)On 10/21/05, Ming Li <[EMAIL PROTECTED]> wrote: I have some data kept in the s

When should I update the database?

2005-10-21 Thread Ming Li
I have some data kept in the session object that can be changed very frequently by users during each session, so it's not efficient to update database whenever a user makes a change. I want to update database just before the session times out. I thought I could do database update in valueUn

Re: Open source Web-based (servlet/JSP/JSTL) JDBC database manager?

2004-10-06 Thread Jay K
Try this one if your db is MySQL. http://javamyadmin.sourceforge.net/ Never tried it. ~Jay http://JavaRSS.com --- Paul Philion <[EMAIL PROTECTED]> wrote: > Greetings... > > Does anyone know of an open-source web-based app for > generically > managing data/databases using JDBC? > > I could do s

Open source Web-based (servlet/JSP/JSTL) JDBC database manager?

2004-10-06 Thread Paul Philion
Greetings... Does anyone know of an open-source web-based app for generically managing data/databases using JDBC? I could do some simple form-based stuff for data management, but I really need to be able to add/drop tables, edit/manage the data, etc. If there was a simple, web-based app to do this

Re: How to show an image when fetching from database

2004-09-29 Thread Zutshi, Rahul
Title: RE: How to show an image when fetching from database Refer to Paul Copeland's response to a similar question earlier. Subject of the response being "Re: How To Insert Image Into Mqsql data type ?(urgent)" gl, Rahul -Original Message- From: andy susanto

How to show an image when fetching from database

2004-09-29 Thread andy susanto
hai, this is my partial code : Statement stmt = Con.createStatement(); ResultSet resultSet = stmt.executeQuery("SELECT PIC FROM TransTreatment"); byte[] test = new byte[4096]; res.setContentType("image/jpeg"); while (resultSet.next()) { // Get data from the binary column test = r

send result database query to MIDP

2004-08-12 Thread in-noeng
I have dah succeed to retrieve data from MySQL database by using servlet, then I want to send it to MIDP application. Anybody have suggestion/idea how I should do it?   TIA, noeng ___ To unsubscribe, send email to [EMAIL

Re: Check database availability

2003-07-29 Thread vikramjit singh
Title: RE: Check database availability Type java utils.dbping on the command prompt.. and u shall see how to check whether database is listening... -Original Message-From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[

Re: Check database availability

2003-07-29 Thread Xu, John
Title: RE: Check database availability Would you please specify, for example using WebLogic, what specific class or method that can be used to tell a remote database availability?   Thanks lot!   John -Original Message-From: Hyne, David [mailto:[EMAIL PROTECTED]Sent: Tuesday

Re: Check database availability

2003-07-29 Thread Hyne, David
Title: RE: Check database availability Depending on the container you use, it tells you the state and availability of database server, database itself. Weblogic and Resin are well known for these. -Original Message- From: Xu, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 29

Check database availability

2003-07-29 Thread Xu, John
This may be a programming question but not servlet. However, if you have some idea. Is there a good way to check database availability that is waiting for connection without connected to the database server? We know the host is running but don't know the database server. We need to know

Re: How to close database connections.

2003-03-26 Thread Becky Norum
you can limit the time a Statement will take to execute with: Statement.setQueryTimeout(int seconds) Then you can continue with closing the connection, etc. HTH, -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http

How to close database connections.

2003-03-25 Thread V.T.R.Ravi Kumar
Hi friend,   I have some web reports developed which accesses my database and displays the result as a webpage. The thing is if due to some reason the query got stuck and caused delay then if the user closes the window the connection remained unclosed.  Although i have set time out in the

Re: Save character special Ñ into database

2003-03-03 Thread Carlos Portugal B.
, Neo. I'm trying to tell you that when you're ready - you won't > have to! > > > -Original Message- > From: Carlos Portugal B. [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 01, 2003 4:55 AM > To: [EMAIL PROTECTED] > Subject: Save character special Ñ int

RE: Save character special Ñ into database

2003-03-02 Thread Nair, Pramod (Cognizant)
l you that when you're ready - you won't have to! -Original Message- From: Carlos Portugal B. [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 4:55 AM To: [EMAIL PROTECTED] Subject: Save character special Ñ into database Hello, i'm new in this list. I have a

Re: Save character special Ñ into database

2003-02-28 Thread Becky Norum
Carlos, What database are you using? For Oracle, you must specify language settings while creating a database. Not sure about others.. -- Becky Norum Database Administrator Center for Subsurface Sensing and Imaging Systems (CenSSIS) Northeastern University http://www.censsis.neu.edu On Fri

Save character special Ñ into database

2003-02-28 Thread Carlos Portugal B.
Hello, i'm new in this list. I have a problem with the special characters (spanish characters), i execute SQL command: "INSERT INTO table1 (field1) VALUES ('niño')" The insert is ok, but when i see the table "table1" i see "ni?o", the special character ñ is replaced by ?. How can i do? Please

Re: How to read an XML file on the internet using a servlet & to upd ate an internet database

2003-02-12 Thread Partha Ranjan Das
write to the outputstream of the socket. This way you get the xml contents. similarly you can do the same for the database update. regards, partha -Original Message- From: Ashish Sarin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 4:08 PM To: [EMAIL PROTECTED] Subject: How

Re: How to read an XML file on the internet using a servlet & to upd ate an internet database

2003-02-09 Thread Frans Verhoef
This definitely doesn't belong in a servlet interest group ...but to give you a very simple answer... WEBSERVER (or if you prefer FTP server). And a database is just a database. No special setups for that. Frans On 5 Feb 2003 at 16:08, Ashish Sarin wrote: > Hi all, > > I h

How to read an XML file on the internet using a servlet & to upd ate an internet database

2003-02-05 Thread Ashish Sarin
Hi all, I have a scenario in which a servlet reads an XML file located on the internet. I know the IP address of the machine on which the XML file is located. I have to read that XML file and do some processing and then update another database located on the internet, the IP address of which is

Re: Weird database problem & catching exception

2003-02-04 Thread viju
  Check the statement if it is null before closing it.   Vj   - Original Message - From: Tom Kochanowicz To: [EMAIL PROTECTED] Sent: Tuesday,February 04,2003 11:43 PM Subject: Weird database problem & catching exception I am using MySQL with R

Weird database problem & catching exception

2003-02-04 Thread Tom Kochanowicz
I am using MySQL with Resin. Recently there has been a lot of discussion on this list about closing database statements and problems. Has anyone run into this one?   I have this finally statement finally{   try{     // close the statments & DB connec

Re: No exception trying to connect to stopped database ?

2002-11-22 Thread Tom Kochanowicz
Nancy, the jdbc/odbc bridge is a toy and used a lot for connecting to an Acesss database. You should be using Sybases' JDBC driver if you are connecting to that brand of database. T.K. -Original Message- From: A mailing list for discussion about Sun Microsystem's Java S

Re: No exception trying to connect to stopped database ?

2002-11-22 Thread Snehal Pandya
public void makeOdbcConn() throws ClassNotFoundException, SQLException { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:" + dsn, name, passwd); } why don't you try this. this may help you to solve the problem ---

Re: No exception trying to connect to stopped database ?

2002-11-22 Thread Susan
Further reflection -right after posting my initial question- led to one of those "I could'a had a V-8" moments, and the probable answer to my own question, which is - that it would most likely be hard for the database to return an exception when it is not even running. So h

Re: No exception trying to connect to stopped database ?

2002-11-22 Thread Robert S. Sfeir
n't happen, the ODBC driver is lying to you!"); On Friday, November 22, 2002, at 05:47 PM, Susan wrote: We are connecting to database in standard fashion, using either JDBC driver, or JDBC:ODBC bridge. Here is the problem: if we try to connect to a running database but cannot connect(e.

No exception trying to connect to stopped database ?

2002-11-22 Thread Susan
We are connecting to database in standard fashion, using either JDBC driver, or JDBC:ODBC bridge. Here is the problem: if we try to connect to a running database but cannot connect(e.g. due to incorrect password), exception is thrown and we trap the error. This is good. However, if the

UTF8 conversion - send mails from database : failUTF8Conv

2002-10-18 Thread Anoop Kumar V
Title: UTF8 conversion - send mails from database : failUTF8Conv Hi All, We have an application which checks an oracle database and a servlet sends out the mails at regular intervals based on the status whether the message was sent or not. The application has been running fine until now

Re: Connection to database from jsp.

2002-10-16 Thread M. E. Zawadzki
I agree; However a connection pool is more scalable. --- Mark Mascolino-MR/PGI <[EMAIL PROTECTED]> wrote: > You absolutely do not want to share database connections like this. Each > request should have its own database connection. Wether the connection is > created from scratch

Re: Connection to database from jsp.

2002-10-16 Thread Mark Mascolino-MR/PGI
You absolutely do not want to share database connections like this.  Each request should have its own database connection.  Wether the connection is created from scratch each time or it is checked out from a pool doesn't matter in terms of correctness.  You will run into issues with two or

Re: Connection to database from jsp.

2002-10-16 Thread karthikeyan
Title: Connection to database from jsp. HI,     Have a bean class.  And there in the constructor part of the class establish a database connection.  Do put a condition to check if connection is open already if yes then dont do anything. This worked for me.  Looking forward for some comments

Re: Connection to database from jsp.

2002-10-16 Thread karthikeyan
Title: Connection to database from jsp. Who is this guy moderator take him out of this LIST - Original Message - From: [Your Full Name] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 1:34 PM Subject: Re: Connection to database from jsp. NO

Re: Connection to database from jsp.

2002-10-16 Thread M. E. Zawadzki
s no controller servlet as it is a simple system. What i > want is to access the database from the jsps. The problem is that I do not > want a new connection to be established everytime a request is made. What is > the solution for this? > I had initially thought of having a utility cl

Re: Connection to database from jsp.

2002-10-16 Thread M. E. Zawadzki
stem. What i > want is to access the database from the jsps. The problem is that I do not > want a new connection to be established everytime a request is made. What is > the solution for this? > I had initially thought of having a utility class and in that I can have a > getConnectio

Re: Connection to database from jsp.

2002-10-16 Thread M. E. Zawadzki
PROTECTED]> wrote: > NO MORE GARBIGE MAIL > > thanks > > -Original Message- > From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] > Sent: 16. lokakuuta 2002 10:59 > To: [EMAIL PROTECTED] > Subject: Connection to database from jsp. > > > > We have a system co

Re: Connection to database from jsp.

2002-10-16 Thread [Your Full Name]
Title: Connection to database from jsp. NO MORE GARBIGE MAIL   thanks -Original Message-From: Anoop Kumar V [mailto:[EMAIL PROTECTED]]Sent: 16. lokakuuta 2002 10:59To: [EMAIL PROTECTED]Subject: Connection to database from jsp. We have a system consisting of a group of jsps

Connection to database from jsp.

2002-10-16 Thread Anoop Kumar V
Title: Connection to database from jsp. We have a system consisting of a group of jsps - which have links to one another. There is no controller servlet as it is a simple system. What i want is to access the database from the jsps. The problem is that I do not want a new connection to be

Re: j2ee and database connection

2002-09-24 Thread Fei Li
Hi Vijay, If you make real application do not copy j2ee tutorial. For a tutorial one DB connection is enough. Fei Li - Original Message - From: "vijay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 5:46 PM Subject: j2ee and databa

j2ee and database connection

2002-09-24 Thread vijay
DB creates a (one) database connection and has a few methods. My question is, if that application has only one connection, then what if 1000 users access the application at a time? I'm assuming ServletContext means it's the scope when ever a particular servlet is deployed r started. If 1000 us

Re: code generation from database

2002-08-19 Thread Taylor, Kevin
age- > From: Geeta Ramani [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, August 08, 2002 6:59 AM > To: [EMAIL PROTECTED] > Subject: Re: code generation from database > > Eva: > > You may want to look at Expresso. I believe the framework is considered > excellen

Connection Lost from Browser Page to Database, Works on one netw ork not on other net work

2002-08-01 Thread Kammari, Venkatta
Guys, I ahve a problem pulling large amount of data from the database taking more than 3 minutes. It works on one net work, but not on the other net work. we donot have any time outs in our code. I am using JRun and IIS, I have Servlet to pull the data. thanks in advance, Venkat

Interesting result of JSP/ASP database benchmark on Microsoft SQLServer

2002-07-25 Thread Gang Zhang
I was trying to compare the performence between JSP/ASP with some benchmark tests, and when come across database benchs, there are something very interesting. The JDBC driver provided by Microsoft (jar files dated around 4/19/2002) providedslower access time then SUN's JDBC-ODBC d

Re: Database connections when user hits "stop" in browser..(in)

2002-07-18 Thread Jeremy W. Redmond
Thanks to all who responded. I will give the different suggestions a try. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java

Re: Database connections when user hits "stop" in browser..(in)

2002-07-18 Thread John O'Hara
>In testing I have noticed that if a user runs a servlet that does some >database access and hits "stop" (the X in IE for example) while the >database connection is still open, then the database connection remains >open. This will eventually cause problems if we have 100+

Re: Database connections when user hits "stop" in browser..(in)

2002-07-18 Thread Raghupathy, Gurumoorthy
Can i suggest something ? Logic is something like this ... initiate a thread in the init() of the servlet in the doGet( ... ) and in the doPost( ... ) when you open the database set a flag imme. to indicate an open database connection. when you

Re: Database connections when user hits "stop" in browser..(in)

2002-07-18 Thread Jeremy W. Redmond
Opened and closed in doGet( ). Opened in beginning, and closed once the HTML has been generated (from database query) to be displayed. The servlet basically generates a report that is displayed as an HTML table. The connection is just a local variable. I don't store it in the session or any

Re: Database connections when user hits "stop" in browser..(in)

2002-07-18 Thread Adrian Janssen
when do you open your connection, and when do you close, and where do you store it for the duration of its existance? > -Original Message- > From: Jeremy W. Redmond [SMTP:[EMAIL PROTECTED]] > Sent: 18 July 2002 02:13 > To: [EMAIL PROTECTED] > Subject: Database c

Database connections when user hits "stop" in browser..(in)

2002-07-18 Thread Jeremy W. Redmond
I couldn't find an answer to this question in archives. Maybe there is no solution. In testing I have noticed that if a user runs a servlet that does some database access and hits "stop" (the X in IE for example) while the database connection is still open, then the data

Re: I want to connect database

2002-07-16 Thread Albert Pi
d a servlet to display the saffters info to uses. Database is MS sql server7.0 . I connected database with generic Connection object.As thought of performance,I wanna connect database with "Connection Pool." Follwing is an example offered by Microsoft: Context ctx = n

Re: I want to connect database

2002-07-16 Thread Neel Mukherjee
Hi, When you configure a new datasource using the weblogic console there is a field called the jndi name. Here you would have given ("jdbc/what-ever-you-wrote") and also filled up the next textfield pointing this data-source to use a pre-configured Connection Pool (say demoPool). So when you wan

Re: I want to connect database

2002-07-16 Thread Yuri Singidas
I believe most tools have wizards that generate the XML file for the datasource. I don't know WebLogic but below is an example generated by Forte: - - jdbc/EmployeeDB - Database mydb jdbc:odbc:mydb scott tiger

I want to connect database

2002-07-16 Thread kongtao
Hello everybody,I'm newbie,I have finised a servlet to display the saffters info to uses. Database is MS sql server7.0 . I connected  database with generic Connection object.As thought of performance,I wanna connect database with "Connection Pool." Follwing is an exam

Problem with Resin, database and JSP/Servlets

2002-06-28 Thread Patrick Fong
Hi I have a problem with my resin server. It is very unstable and tends to loose persistence(?). What happens is that database connection is ok for a while, but as soon as I change a class, or a jsp, it throws the error mentioned below. What I do is delete all the *.jsp and *.class files form the

Database connection problem

2002-06-05 Thread Juan Salazar
Hi, all i am newbie for Orion application server and starting tests with it. First: Is neccesary JNDI programming in Orion?? Second: I have a simple web application with a Database connection pool and received the following error. Can you help me, please

Re: Question re servlet database application

2002-04-04 Thread Tim Panton
The thing you have to decide (besides nicF's excellent comments)is : will the database be updated during a session by other users, either via the servlets or via annother app? I so, do you care that the web user won't see the change till they logout and back in ? If you do decide t

Re: Question re servlet database application

2002-04-03 Thread Nic Ferrier
ns. Last point on this: I once worked on an app that did sorting extreemly well using client side JavaScript. > Simplistically, the database contains a list of their clients (as I > said before, upto 5000), what investment products they have > available (I believe 100 is typical). A client

Re: Question re servlet database application

2002-04-03 Thread Dan Hobbs
> -Original Message- > From: Nic Ferrier [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 3:41 PM > To: [EMAIL PROTECTED] > Subject: Re: Question re servlet database application > Thanks for your response, Nic. I'll see what I can ad

Re: Question re servlet database application

2002-04-03 Thread Nic Ferrier
Dan Hobbs <[EMAIL PROTECTED]> writes: > Currently, ALL the data is loaded from the (Oracle) database into > memory at login time, and held in so-called "Bean" objects (but I'm > not convinced that's a good name for them). References to these bean > objec

Question re servlet database application

2002-04-03 Thread Dan Hobbs
experience constitutes two weeks reading and a four-day course on Java basics). The current state is that we have a set of servlets which reproduce data from the database, mostly based on some form information (for example return all products owned by a client: showProducts?clientId=xxx). There will

Re: Connecting to Oracle database

2002-02-26 Thread Galbreath, Mark
lto:[EMAIL PROTECTED]]Sent: Tuesday, February 26, 2002 12:20 AM Hi..I have a servlet which needs to access an Oracle Database using JDBC..i installed the driver for it...and it works for local applications...my url string is jdbc:oracle:oci8:@ if i use that in the servlet i dont get any

Re: Connecting to Oracle database

2002-02-25 Thread Jones Bob
) ) ) Best Regards Bob Jones Senior Analyst Programmer - FRC MSATS Project MMS Information Technology NEMMCO 02 8845 8616 pallav cc: Sent by: "A mailing Subject: Connecting to Oracle dat

Connecting to Oracle database

2002-02-25 Thread pallav
Hi..I have a servlet which needs to access an Oracle Database using JDBC..i installed the driver for it...and it works for local applications...my url string is jdbc:oracle:oci8:@ if i use that in the servlet i dont get any connection...what url should i use? i'm using oracle Per

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-07 Thread Pramod Nair
entity. regards Pramod Nair - Original Message - From: "Gerry Scheetz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 12:02 AM Subject: Sort of OT: Getting data from database to JavaBeans > My team is in the process of building a web ap

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-07 Thread Anton Tagunov
plenty of parameters (fill a HashMap and pass it to the constructor). This is not J2EE. You create an InitialContext that is almost completely independent of what the web container has provided you with and it does have to initiate a new TCP connection. (This may be as slow

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-07 Thread Geeta Ramani
Try "Expresso" from www.jcorporate.com. That framework is built with database intensive web applications in mind. They have encountered and solved most of the problems most of us can think of!! Regards, Geeta Gerry Scheetz wrote: > My team is in the process of building a we

Sort of OT: Getting data from database to JavaBeans

2002-02-07 Thread Gerry Scheetz
the Action class returns the location of the JSP page to be displayed. My problem is all my database access goes through one singleton class, which uses connection pooling. The run-time performance of this class is fine, but with multiple developers everyone want to access this file at the same time

Database-independent time-stamp on a tuple?

2002-02-04 Thread Ryan LeCompte
  Hello all,     I was wondering if it is at all possible to somehow, database-independently, get a Date on the exact time a specific tuple was updated/inserted into a table. I have been looking at DatabaseMetaData and ResultSetMetaData, but I don't find any obvious solutions. I don&#

Re: Deployment of servlets & database

2002-02-04 Thread Gert Grenander
I'll try to benchmark it against what I currently got. If it breaks or is too slow, I'll go for Harish's solution. (building the DB with a script) But to me, a Java based database would be the ideal platform independent solution. (easiest way of deploying my application) Thank

Re: Deployment of servlets & database

2002-02-04 Thread Marco Trevisan
See inline: - Original Message - From: "Gert Grenander" Sent: Monday, February 04, 2002 9:24 AM Subject: Re: Deployment of servlets & database > I found a good page about it: > http://hsqldb.sourceforge.net/internet/hSql.html . > > This is a great solution. I

Re: Deployment of servlets & database

2002-02-04 Thread Gert Grenander
al Message - From: Harish Kumar Kottarathil To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 3:25 AM Subject: Re: Deployment of servlets & database You need not bundle DB s/w along with ur app. U can write scripts which will create ur DB schema on client&#x

Re: Deployment of servlets & database

2002-02-04 Thread Gert Grenander
I found a good page about it: http://hsqldb.sourceforge.net/internet/hSql.html . This is a great solution. I'll dig into it and see if it's a stable product and if it fits my needs! I hope it's a speedy database. Do you have experience in using it? (e.g. are there any drawba

Re: Deployment of servlets & database

2002-02-04 Thread Harish Kumar Kottarathil
r app will become platform independent, regardless of the underlying DB.   All the best     :-) Harish     - Original Message - From: Gert Grenander To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 1:23 PM Subject: Re: Deployment of servlets &

Re: Deployment of servlets & database

2002-02-03 Thread Marco Trevisan
Have you considered Java as a platform for your DB ? Hypersonic sql (there are others) comes to my mind as an ideal candidate. Marco - Original Message - From: Gert Grenander To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 8:53 AM Subject: Re: Deployment of servlets & data

Re: Deployment of servlets & database

2002-02-03 Thread Gert Grenander
for spending your time to give me an answer on this issue!Regards,Gert - Original Message - From: Harish Kumar Kottarathil To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 2:39 AM Subject: Re: Deployment of servlets & database There is no MS A

Re: Deployment of servlets & database

2002-02-03 Thread Harish Kumar Kottarathil
: Deployment of servlets & database Hi Harish,   But if I want to bundle the MS Access database with the application, (for easier deployment, since it's going to be sold as a module) is there an issue of it being developed in a Windows environment? Or do I have to build a

Re: Deployment of servlets & database

2002-02-03 Thread Gert Grenander
Hi Harish,   But if I want to bundle the MS Access database with the application, (for easier deployment, since it's going to be sold as a module) is there an issue of it being developed in a Windows environment? Or do I have to build a database on each different potential platform

Re: Deployment of servlets & database

2002-02-03 Thread Harish K Kottarathil
well, if u r using java jdbc 2.0 APIs for database access, ur application can be indepenedent of the underlying DB. Doesn't make any diff, whether the DB is oracle/DB2 etc.   Harish - Original Message - From: Gert Grenander To: [EMAIL PROTECTED] Sent: M

Deployment of servlets & database

2002-02-03 Thread Gert Grenander
Hi,   I'm currently developing my first servlet-based web application, and I really like the concept of Java being platform independent language. But one thing that bugs me is that I feel that I got platform dependent when I took the decision of having a real database instead of X

Re: Can Database connection be maintained between servlets ...

2002-01-08 Thread Naveed Iqbal
Title: RE: Can Database connection be maintained between servlets ... Hi Dear,     I think your problem may be solved by using "Connection Pooling". Thanks & Regards Naveed Iqbal -Original Message- From: Brian Moynihan [mailto:[EMAIL PROTECTED]] Sent: Tuesd

Re: Can Database connection be maintained between servlets ...

2002-01-08 Thread Garcia Buendia, Carlos
You can use the session object to share the database connection between servlets. After verifying username and password, in the session object you put the database connection: //Get the session HttpSession mySession = req.getSession(true); //Set

Re: Can Database connection be maintained between servlets ...

2002-01-08 Thread Yuriy Stepovoy
- Original Message - From: "Brian Moynihan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 11:15 AM Subject: Can Database connection be maintained between servlets ... > Hi there, > > Does anyone know how to maintain a datab

Re: Can Database connection be maintained between servlets ...

2002-01-08 Thread Christopher K. St. John
Brian Moynihan wrote: > > i.e. Open the connection through a login servlet which gives the database > username and password. What we need, is for all other servlets in the > application to have access to this connection. > Search the archives (link at the bottom of every message)

Can Database connection be maintained between servlets ...

2002-01-08 Thread Brian Moynihan
Hi there, Does anyone know how to maintain a database connection between servlets: i.e. Open the connection through a login servlet which gives the database username and password. What we need, is for all other servlets in the application to have access to this connection. A possible

Re: Database connection in a Servlet

2002-01-05 Thread Nic Ferrier
vijay <[EMAIL PROTECTED]> writes: > Hi, > > Please advice what's wrong in the following Servlet. Iam not getting a > value for Connection 'con': > >public Connection handle() >{ > Connection conn=null; > try { >Class.forName("oracle.jdbc.driver.OracleDriver"); >

Database connection in a Servlet

2002-01-04 Thread vijay
"Simple Servlet Output"; String query = "select NE_FIRST_NAME from ne_applicant where ne_ssn='123456782'"; database DATA= new database(); Connection con=DATA.handle(); ResultSet rset=DATA.fetchRows(con,query); String v=""

Re: Database Connection in Tomcat

2001-12-20 Thread Purav J. Parekh
Hi, Its not a problem with the SQL Query. The Application is a tested product runnning on JRUN.. The STackTrace shows an error in the getConnection method. Do I have to specify any database settings in Server.xml or just by placing the database driver JAR file in the common/lib directory of

Re: Database Connection in Tomcat

2001-12-20 Thread Yuriy Stepovoy
> javax.servlet.ServletException: net/avenir/jdbc2/h (Illegal Field name "?") maybe you did not set parameters in your SQL ? Yuriy ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "s

Database Connection in Tomcat

2001-12-20 Thread Purav
Title: Message   Hello all,   I recently upgraded my web server to Tomcat. I successfully created the respective contexts for my aplications. However I am unable to connect to the database in my JSP's. When I run my JSP Page , it throws the following exception the first few

Re: Database Connection in Tomcat

2001-12-20 Thread Chaitally
D] Sent: Thursday, December 20, 2001 9:23 AM Subject: Database Connection in Tomcat Hello all,   I recently upgraded my web server to Tomcat. I successfully created the respective contexts for my aplications. However I am unable to connect to the database in my JSP

Database Connection in Tomcat

2001-12-19 Thread Purav
Title: Message Hello all,   I recently upgraded my web server to Tomcat. I successfully created the respective contexts for my aplications. However I am unable to connect to the database in my JSP's. When I run my JSP Page , it throws the following exception the first few

Re: restoring a database using java.sql

2001-12-07 Thread Chaitally
Hi Can you please tell me the restore command syntax using which you can restore a database ? Which database are you using and what is the preocess to restore a database (using restore command) fro a backup file. Can you please explain me? Please anser me at [EMAIL PROTECTED]   Thanks

Re: restoring a database using java.sql

2001-12-06 Thread Christopher K. St. John
> Sulakshana Awsarikar wrote: > > I am trying to restore a database from a backup file using a > java program. > Try JDBC-INTEREST, it's the official Sun mailing list for JDBC questions: http://archives.java.sun.com/archives/jdbc-interest.html Good luck. -- Christo

restoring a database using java.sql

2001-12-06 Thread Sulakshana Awsarikar
Hi,   I am trying to restore a database from a backup file using a java program. In this I am establishing a connection to the database and executing the restore statement. But this fails as the database is in use.   Is there any way to restore a database programatically ?   regards

Database

2001-11-26 Thread Ahmet Okan Onarcan
Hi all, I am working with Wepsphere application Server. I am executing servlets but i cant execute a JDBCServlet. I also Create a JDBC driver and install it but i cant interaction it with my JDBCServlet. __ Do You Yahoo!? Yahoo! GeoCities - quick

Re: verifying database entries

2001-11-21 Thread Milt Epstein
On Tue, 20 Nov 2001, mike dizon wrote: > Hi All, > > I'm trying to make sure that an entry in a database doesn't exist > before I enter data into the database -- based on information > entered in on a form. > > How do I go about doing that? Any help would be ap

Re: verifying database entries

2001-11-21 Thread Matt Penner
g to get a exception. Act upon that exception by propagating > it > or use a "UPDATE" now. > > Peter > > > - Original Message - > From: mike dizon <[EMAIL PROTECTED]> > Date: Wednesday, November 21, 2001 4:42 am > Subject: verifying database entries >

Re: verifying database entries

2001-11-21 Thread Peter Huber
MAIL PROTECTED]> Date: Wednesday, November 21, 2001 4:42 am Subject: verifying database entries > Hi All, > > I'm trying to make sure that an entry in a database doesn't exist > before I enter data into the database -- based on information > entered in on a form.

Re: verifying database entries

2001-11-21 Thread Michael Weller
2001 4:42 AM Subject: verifying database entries Hi All,   I'm trying to make sure that an entry in a database doesn't exist before I enter data into the database -- based on information entered in on a form.   How do I go about doing that? Any help wou

verifying database entries

2001-11-20 Thread mike dizon
Hi All,   I'm trying to make sure that an entry in a database doesn't exist before I enter data into the database -- based on information entered in on a form.   How do I go about doing that? Any help would be appreciated.   Thanks MD    

  1   2   3   4   5   6   7   >