Tomcat and MySQL

2003-07-31 Thread engp0510
Hi, I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional. In Server.XML of Tomcat, I use: In MySQL, I set all user must access database with password and grant user 'leeson' with all privileges. I can use leeson and password to log into MySQL. But when I start tomcat-standalone, there

HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Hi, I am using Tomcat 4.0 and MySQL 4.0.14 on WIn2K Professional. In Server.XML of Tomcat, I use: In MySQL, I set all user must access database with password and grant user 'leeson' with all privileges @ localhost. I can use leeson and password to log into MySQL. All setting of MySQL will work

Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
Thanks very much! Y, I have tried. But always throw org.xml.sax.SAXParseException said a ";" is needed to end the quote of "password". Any advice? - Original Message - From: "Emmanuel G. Dialynas" <[EMAIL PROTECTED]> To: "engp0510" <

Re: HELP!! TOMCAT and MYSQL

2003-08-03 Thread engp0510
t; To: "'Tomcat Users List'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "'Emmanuel G. Dialynas'" <[EMAIL PROTECTED]> Sent: Sunday, August 03, 2003 7:12 PM Subject: RE: HELP!! TOMCAT and MYSQL Split the user and pass off of the URL, and into s

Re: Question about Notify all online user

2003-08-14 Thread engp0510
points > to a servlet which queries the database for new messages. If there is a > new message, the iframe uses javascript to fire off a pop up. message. > > You're other option would be to use an applet that maintains a statefull > connection to your server. A applet

Question about Notify all online user

2003-08-14 Thread engp0510
Hi, all How to implement notifying all online user when the record in database has been changed? I am using Servlet and JSP to build a small Supply-Chain system running on Tomcat with MySQL. Thanks Zhidao

Re: Question about Notify all online user

2003-08-14 Thread engp0510
iframe uses javascript to fire off a pop up. message. You're other option would be to use an applet that maintains a statefull connection to your server. A applet list would be a better place to discuss that approach though. On Wednesday 13 August 2003 12:07 pm, engp0510 wrote: > Hi

Re: Run Windows' command in Java method

2003-08-14 Thread engp0510
http://java.sun.com/docs/books/tutorial/native1.1/ - Original Message - From: "Cui Xiaojing-a13339" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, August 15, 2003 11:41 AM Subject: Run Windows' command in Java method > Hello All, > > Do you know if windows

Re: Any contractors from HK, S.E.Asia or India in this forum ?

2003-09-02 Thread engp0510
>From PR. China studying in Singapore. - Original Message - From: "Clive Luk" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, September 03, 2003 9:32 AM Subject: RE: Any contractors from HK, S.E.Asia or India in this forum ? > I am from HK but i am worki

How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Hi How to cache the user's input in a jsp page? The following is some code of my JSP: <% int item_num = 5; int row_num = 1; if(request.getParameter("row_num")!=null){ String rowstr = (request.getParameter("row_num")); try{ row_num = Integer.parseInt(rowstr);

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
ession type variables (IMHO) Or you could write your own cache :) Cheers Duncan -Original Message- From: engp0510 [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 09:00 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: How to cache the user's input in a jsp page? Hi How to cache

Re: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
In the servlet or jsp you could do : > String text = request.getParameter("subject") ; > > Then do whatever you want with it. > > engp0510 wrote: > > >Thanks > >I know maybe I should use session, but when I choose "select" box, the jsp > >page will

Detail: How to cache the user's input in a jsp page?

2003-09-04 Thread engp0510
Hi , ALL, The following is my jsp page, store it into a file named "MyQUESTION.jsp" , pay attention for the "Subjuect" while u choosing the select. <% int item_num = 5; int row_num = 1; if(request.getParameter("_rows")!=null){ String rowstr = (request.getParameter("_rows"));

Simple question about JSP page

2003-09-05 Thread engp0510
Hi, Maybe it's a stupid question. Built jsps for adding&searching with MySQL. First listing all existing records in db and then adding a new one into database, then listing all records again. Now the list is the same as previous. How to solve it? THX -

Re: Dynamic drop down menus

2003-09-12 Thread engp0510
http://www.htmlcodetutorial.com/ - Original Message - From: "Anson Zeall" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 5:41 PM Subject: Dynamic drop down menus > Hi, > > I want to know if there are free guides in teaching you how t

Re: article on tomcat performance

2003-09-21 Thread engp0510
PDF - Original Message - From: "Peter Lin" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 9:44 AM Subject: Re: article on tomcat performance > > Here is a quick update. I plan to release the finished article thursday or friday. tim and

How to run a JSP/Servlet Web App on a pc unconnected with internet

2003-09-23 Thread engp0510
Hi, I try make a presentation to show a web application but should use a laptop without net connection. In Tomcat's Server.XML the DTD file is from: http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> Without this I can use Servlet mapping, and have to change all codes in JSP to the full path, right