Re: Login Authentication against database...

2001-11-15 Thread Bob
tement psth = conn.prepareStatement(psql); >psth.setString(1, username); >psth.setString(2, password); >ResultSet rs = psth.executeQuery(); > >Chris > >-Original Message- >From: A mailing list about Java Server Pages specification and reference >[mailto:[EMAIL PROT

Re: Login Authentication against database...

2001-11-15 Thread Bob
For those of you who use this method of login authentication, use the following username/password in your login page when you're done coding and see what happens: UserName: x' or 1=1-- Password: x >From: Chris Tucker <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specif

Re: How to put getRemoteAddr() into SQL server table?

2001-10-22 Thread Bob
Hey Miao, Now you're taking it personal! I normally don't do this, but just to annoy you, and prove that why reading the Java tutorial will help you, I will give you the answer: Try: String updateip ="Update tbluser set incomingip= '" + request.getRemoteAddr() + "' where uname = '" + uname +

Re: How to put getRemoteAddr() into SQL server table?

2001-10-22 Thread Bob
Hi Miao, Why don't you pick up a Java book and read. Judging from your posts, you don't have the most basic Java syntax down. How can you code efficiently? For starters, read the following free tutorial from sun. RTFB or RTFT http://java.sun.com/docs/books/tutorial/?frontpage-spotlight http:/

Re: How can I trim the string in Java ???

2001-09-24 Thread Bob
Simon and Dick, Couldn't you guys pick up a book and read? Please... - Original Message - From: "s i m o n" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 24, 2001 10:52 PM Subject: Re: How can I trim the string in Java ??? > i'm fairly new here. what is a can th

Re: Help on connecting mysql server.

2001-09-19 Thread Bob
Of course, the driver name depends on what driver you're using. How would this list know that! A quick search on google gives: http://www.caucho.com/projects/jdbc-mysql/index.xtp Bob Vú >From: Dick Wong <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages

Re: how to access java classes from jsp

2001-09-18 Thread Bob
Yes, you are wrong. Bean constructor cannot have parameters, but the body of the contructor does NOT have to be empty.     - Original Message - From: chenghong To: [EMAIL PROTECTED] Sent: Friday, July 20, 2001 10:57 AM Subject: Re: how to access java classes from js