Re: JSP/JSTL problem

2007-01-03 Thread murthy gandikota
Many thanks for your kind response. I was using a form that was submitted twice for any given new ssn. I have also benefited from your comments on how to write a better java code. Turns out my html and javascript skills need improvement. Many thanks again. Regards David Griffiths <[EMAIL P

Re: JSP/JSTL problem

2007-01-02 Thread David Griffiths
This is a little dangerous as well; if an exception gets thrown, the statement doesn't get closed. My sample code is below. That said, your query looks fine. Add logging to your code to figure out what's going on. Run your query by hand against your database; I suspect you have an issue with

Re: JSP/JSTL problem

2007-01-02 Thread murthy gandikota
I tried everything you suggested. 'Think it is the way I have set up the table in MYSQL. This is the table ++---+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | ++---+--+-+-+---

Re: JSP/JSTL problem

2007-01-02 Thread murthy gandikota
Here is the code: ps = con.prepareStatement("select first, last from cust where ssn=?"); int ssnint = Integer.parseInt(ssn.trim()); ps.setInt(1, ssnint); ResultSet rs=ps.executeQuery(); if ( rs.next()) { rs.close(); out.println("Cust

Re: JSP/JSTL problem

2006-12-30 Thread murthy gandikota
I am getting the same result in Java code, i.e. the resultset returned is non-null even though the primary key value is not found in the table. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 12/29/06, murthy gandikota wrote: > I am posting the relevant JSTL code. Just to clarify: you're *not

JSP/JSTL problem

2006-12-29 Thread murthy gandikota
Hi I have created a table with the following specs: create table `cust` ( `ssn` int(9) NOT NULL PRIMARY KEY, `submitdate` date, `submitto` int(3), `first` varchar(30), `last` varchar(30), `loanAmt` decimal(10,2), `company` int(3),

Re: unable to connect mysql and jsp

2004-08-05 Thread Jonathan Mangin
If you've installed the jar in $JAVA_HOME/lib/ext it shouldn't need to be referenced in $CLASSPATH. - Original Message - From: "Mahesh S" <[EMAIL PROTECTED]> To: "my sql" <[EMAIL PROTECTED]> Sent: Thursday, August 05, 2004 1:36 AM Subject:

unable to connect mysql and jsp

2004-08-04 Thread Mahesh S
hi all, i'm using RH linux 9 and MySQL(3.23.54a-11) that comes with the distro. i have installed the latest jdbc driver (mysql-connector-java-3.0.14-production-bin.jar from the msql site) for mysql and also have set the CLASSPATH correctly. despite this, t he jsp application i'm

About Connecting MySQL with JSP ( Connect/J )

2003-03-21 Thread Vahric MUHTARYAN
this side but site I can't connect Mysql Database with jsp .. Or Do you know any other method to connect Mysql with JSP Thanks Error Message is ; Error: 500 Location: /sorgu1.jsp Internal Servlet Error: javax.servlet.ServletException: S

mysql connectivity with jsp on linux os

2002-10-08 Thread naveed abdul
Dear Sir, When Iam trying to connect remote mysql database Using JSP on LINUX Os it is giving an error... Remote system is Windows NT. java.sql.SQLException: Communication link failure: Bad handshake I loaded 1).MySQL-3.23.40-1.i386.rpm 2).MySQL-client-3.23.40-1.i386.rpm files in to my

problem : mysql connectivity using JSP on LINUX os using username and password

2002-08-16 Thread naveed abdul
Dear Sir/madam, we are able to connect Mysql database using JSP in Linux RedHat-6.2 OS (with out using user and password). when we are trying to connect using user and password it was not able to connect. We wrote code like this String DBUrl = "jdbc:mysql://localhost

problem : Mysql connectivity using username and password using JSP in Linux OS

2002-08-12 Thread naveed abdul
Dear Sir/madam, we are able to connect Mysql database using JSP in Linux RedHat-6.2 OS (with out using user and password). when we are trying to connect using user and password it was not able to connect. We wrote code like this String DBUrl = "jdbc:mysql://localhost

×îа汾JSP¡¢PHPÐéÄâÖ÷»ú£¬300ÔªÆð¾ÍÄÜÓµÓÐ!(Ãâ·ÑÊÔÓÃ)

2002-05-18 Thread Todaynic
×𾴵Ŀͻ§£¬ÄúºÃ£¡ ʱ´´ÍøÂçJSP PHPÐéÄâÖ÷»úÈ«ÃæÉý¼¶³É¹¦£¬Ö§³Ö×î¸ß°æ±¾£¬¸øÓè ¸ü¶àÖ§³Ö£¬¸ßËÙ¡¢Îȶ¨£¡Êǽ¨Á¢ÆóÒµ¡¢¸öÈËÍøÕ¾µÄ×î¼ÑÑ¡Ôñ: ²ÉÓÃ×îÐÂCatalina ÄÚºË Ö§³ÖServlet 2.3 and JSP 1.2 JDBC mm.mysql-2.0.12 JDBC microsoft.jdbc.sqlserver J2SDK1.4.0 ÖйúµçÐÅ2GÖ±½Ó½ÓÈëCHINANETÖ÷¸É

Re: JSP or PHP?

2002-03-21 Thread Mark Stringham
http://www.cqhost.com/ I have a JSP app hosted there and they are pretty good. They also provide a MSQL DB Mark -Original Message- From: Ken Anderson <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, March 21, 2002 2:39 PM Subject: Re: JSP or

Re: JSP or PHP?

2002-03-21 Thread Ken Anderson
Klym wrote: > > I have built a MySQL database for a web based survey. I am trying to decide > between JSP and PHP for my programming interface. The reason I am > considering Java is because I have some Java experience. What would you > recommend for someone like me who is st

RE: JSP or PHP?

2002-03-20 Thread Dan Harrington
PHP all the way. This will give you a lot of information on what your options are: http://uptime.netcraft.com/up/graph?site=www.klym.ca and substitute site=www.yourdomainname.com It will tell you what modules they currently support etc. PHP is faster than JSP and I think its a whole lot

JSP or PHP?

2002-03-20 Thread Klym
I have built a MySQL database for a web based survey. I am trying to decide between JSP and PHP for my programming interface. The reason I am considering Java is because I have some Java experience. What would you recommend for someone like me who is starting out? Also, my two current hosting

Re: Problem with connecting JSP and mysql

2002-02-20 Thread Arjen Lentz
Hi, On Thu, 2002-02-21 at 03:11, subodh kumar wrote: > I am finding Problem with connecting JSP and mysql, > it gives no error as well as exception,no output is coming out. > please help me in this problem > anticipating quick response I don't mean to be negative, but c

Problem with connecting JSP and mysql

2002-02-20 Thread subodh kumar
Hello sir, I am finding Problem with connecting JSP and mysql, it gives no error as well as exception,no output is coming out. please help me in this problem anticipating quick response Thanking you! subodh - Before posting

RE: MySQL with TOMCAT and JSP giving problems..

2002-01-17 Thread Benoit Marchal
I am using mySQL with tomcat and JSP without any problem. Hearing about your symptoms, I would guess that your connections need to be refreshed from time to time (after a certain time an unactive connection will be dropped which explain why you have to restart tomcat) You should use a

Re: MySQL with TOMCAT and JSP giving problems..

2002-01-17 Thread Neeraj Arora
8PM +0530, aravind gorthy wrote: > > > > Hai, > > > > I am using MySQL with TOMCAT and JSP for development purpose. > > > > 1. Every morning without restarting the tomcat > > server, i am unable to connect the MySql Database. > > What might be the probl

Re: MySQL with TOMCAT and JSP giving problems..

2002-01-17 Thread Jeremy Zawodny
On Thu, Jan 17, 2002 at 12:48:58PM +0530, aravind gorthy wrote: > > Hai, > > I am using MySQL with TOMCAT and JSP for development purpose. > > 1. Every morning without restarting the tomcat > server, i am unable to connect the MySql Database. > What might be the prob

MySQL with TOMCAT and JSP giving problems..

2002-01-16 Thread aravind gorthy
Hai, I am using MySQL with TOMCAT and JSP for development purpose. 1. Every morning without restarting the tomcat server, i am unable to connect the MySql Database. What might be the problem.. I did't get this type of problem in Oracle & SQL server. 2. While Running Tomcat Server

Re: JSP newbie needs to run MySQL-JDBC.

2001-10-31 Thread Igor Fedulov
> Name: MySQL > Display Name: MySQL > Driver: org.gjt.mm.mysql.Driver > URL: > jdbc:mysql://192.168.0.2:80/studiosusa?user=root&password=axnolnms I would assume that here is your problem, most likely mysql is not running on port 80 on your machine and you should change it to 3306,

JSP newbie needs to run MySQL-JDBC.

2001-10-31 Thread Benj Arriola
Hello Everyone, I need to run MySQL using JSP. I am a JSP newbie, actually a Java newbie too. I am more of a PHP/MySQL guy. I have successfully installed Allaire JRun 3.0 on Win98 using PWS. JRun has an application management console and I cannot seem to run MySQL. I am totally

RE: JSP newbie needs to run MySQL-JDBC.

2001-10-29 Thread Edward J. Apostol
Hello - You may wish to try something a little bit more fundamental if you are new to the Java thing. one good way to learn how everything works in JSP is to use a free Java Server, such as Tomcat, and build pages using Macromedia's ultradev software. There is an extension that installs

RE: JSP newbie needs to run MySQL-JDBC.

2001-10-29 Thread Erik
Are you sure MySQL is listening on port 80? The default port is 3306: jdbc:mysql://192.168.1.2:3306/ -Original Message- From: Benj Arriola [mailto:[EMAIL PROTECTED]] Sent: Monday, October 29, 2001 10:56 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: JSP newbie

JSP newbie needs to run MySQL-JDBC.

2001-10-29 Thread Benj Arriola
Hello Everyone, I need to run MySQL using JSP. I am a JSP newbie, actually a Java newbie too. I am more of a PHP/MySQL guy. I have successfully installed Allaire JRun 3.0 on Win98 using PWS. JRun has an application management console and I cannot seem to run MySQL. I am totally

RE: question about use JDBC to connect with MySQL in JSP,please help

2001-08-23 Thread Venu
Hi !!! )-Original Message- )From: aDragon [mailto:[EMAIL PROTECTED]] )Sent: Thursday, August 23, 2001 10:22 PM )To: [EMAIL PROTECTED] )Subject: question about use JDBC to connect with MySQL in JSP,please help ) ) )hello,everyone, )I am using JDBC in JSP to connect with MySQL under

question about use JDBC to connect with MySQL in JSP,please help

2001-08-23 Thread aDragon
hello,everyone, I am using JDBC in JSP to connect with MySQL under BEA WEBLOgic Server 6.0, I have copied the following codes from a book, but the server always says that It was wrong, expecial the variable "con", I don't know why even thinking hard! please help,thanks. the

JSP-Mysql:-Bad handshake problem

2001-05-07 Thread Madhulika Bahl
Hi I am using resin-1.2.3 and mysql at backend on windows 2000...I am trying to connect to mysql thru my JSP's but gotta bad handshake...I am using mysql-jdbc driver... My JSP code is like this.. %@ page language="java" import=" java.sql.*, java.util.*" %>

Re: jsp

2001-02-13 Thread s chitra
Hi sara, Try with: Connection myConn = DriverManager.getConnection("jdbc:mysql://localhost/test_db1,"user","passwor d"); I can able to understand that you want to use mysql database using Jsp. regards, S.Chitra

Re: jsp

2001-02-02 Thread Paul DuBois
At 6:41 AM -0800 2/2/01, Labs Racing wrote: >First excuse me for my english, > > I should like of knowing if the mysql ago connection > with the jsp, what if if he may do, drop of knowing > where I could meet any tutorial, if exist. > Thank you by attention. > Sara.

jsp

2001-02-02 Thread Labs Racing
First excuse me for my english, I should like of knowing if the mysql ago connection with the jsp, what if if he may do, drop of knowing where I could meet any tutorial, if exist. Thank you by attention. Sara. __ Get personalized email

ERROR IN JSP AND TWZ1

2001-02-01 Thread Jaya Thakar(ASI 2001)
hello Can anybody tell me that if JSP(tomcat) implementation of jdk1.2.2 and twz1 Jdbc driver work together. -- jaya It's time to stop comparing yourself to other people. They a

Re: MySql - JSP - Please help - URGENT

2001-02-01 Thread Enric Badia
> > Connection myConn = > DriverManager.getConnection("jdbc:mysql:///test_db1?user=Username&password=pas > sword"); > Try with: Connection myConn = DriverManager.getConnection("jdbc:mysql://localhost/test_db1,"user","passwor d"); === Saludos, Enric Badia SONRIE, LA

Re: MySql - JSP - Please help - URGENT

2001-02-01 Thread Steve Ruby
oing error > > error 500 > javax.servlet.ServletException: Server configuration denies access to data > source > > The jsp page it self has code that is as follows > > <%@ page language="java" import="java.sql.*" %> >

MySql - JSP - Please help - URGENT

2001-01-31 Thread Marko Sarunac
: Server configuration denies access to data source The jsp page it self has code that is as follows <%@ page language="java" import="java.sql.*" %> <% Class.forName("org.gjt.mm.mysql.Driver"); Connection myConn = DriverManager.getConnection("jdbc:mysql

MySql - JSP - Please help

2001-01-31 Thread Marko Sarunac
: Server configuration denies access to data source The jsp page it self has code that is as follows <%@ page language="java" import="java.sql.*" %> <% Class.forName("org.gjt.mm.mysql.Driver"); Connection myConn = DriverManager.getConnection("jdbc:mysql