Eric Wang

Greenhorn
+ Follow
since Dec 21, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eric Wang

Hi, Thank you for all the replies. Thanks a lot.
Eric
23 years ago
Hi, All:
I need a counter to keep track how many people browse this page, the counter will save in a text file, and this counter can be read from the text file and increase it next time. Any suggest how to read it from a file and update the counter in the text file.
Thank you very much
Hongwei
23 years ago
Hi Satya Narayana:
Thank you very much for the reply. When I testing the program, it come out this problem in my jsp code, but I never have this problem before.
My code is like this:
<%@ page
import="
java.util.*;
java.io.*;
"%>
Error message:
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPE:\tomcat\work\localhost_8080\_0002fSplit_0002ejspSplit_jsp_5.java:15: Class or interface declaration expected.
java.io.*;
^
1 error
Please help!
I really like you said this Nothing impossible in Java.
Regards
Hongwei
23 years ago
Hi, All:
I have a simple problem but don't know how should do it? Hope someone help me!
Q1. I have a stringA="A/SG/Fall"
I want to split it to three string, which are A, SG, Fall,
How do split it out?
Q2. I have another stringB="this is my problem!"
I want to get the last three characters for the StringB, I know in ASP can be use Len Function, but don't know in JSP how to do it?
Thank you very much for all the help.
Eric Wang
23 years ago
Ht Ravee Bhat:
Then mean there is not actual directory under Tomcat, am I right?
Then how come must be servlet, not other names?
I just want to know the flow only.
regards
Eric
23 years ago
Hi Ravee:
Thank you the reply first. Yes, I use the win ODBC to create my web.dsn file.
Does it anywrong in the file.
cheers
Eric
23 years ago
Hi All:
As we know, when we using Tomcat, all the class file should be under webapps\Root\WEB-INF\classes folder.
But when we type in the URL is http://localhost/servlet/anyfile.class
so how come I can't file the servlet folder under tomcat folder, but I can run my class file, no problem.
So my question is:
1. How come I can't find the folder, but I will be able to run the class file?
2. Does it define inside any file, can I change the servlet to other name?
Thanks for the help.
Eric
23 years ago
Hi:
I hava a file DSN link to my Access database is named as web.dsn
______________
[ODBC]
DRIVER=Microsoft Access Driver (*.mdb)
UID=admin
UserCommitSync=Yes
Threads=3
SafeTransactions=0
PageTimeout=5
MaxScanRows=8
MaxBufferSize=2048
FIL=MS Access
DriverId=25
DefaultDir=D:\
DBQ=D:\webfriends.mdb
_______________________
1. So how should I use web.dsn, will it work using this way?
2. And if it works, where should I put the web.dsn file?
3. I have try this code, but it won't work, why?
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc dbc:web.dsn", "", "");
Thank you.
Eric
23 years ago
Hi, Sean:
Thank you very much for the so detail explaintion. Thank you very much.
I have been slove my problem. Thanks again.
cheers
Eric
23 years ago
Hi, vikas sahni, Frank Carver, maha anna �CRaghavendra Holla :
Thank you very much for all your replies. I have been slove my problem. Thanks again. You are really a Java Expert. I hope this forum will keep going, and hope more people join in to this forum.
cheers
Eric
23 years ago
Hi William Brogden:
First thanks for the reply, this is what i want to do in my java program.
I have few java program, they are using the same value for this three parameter.
1. this.driverName
2. this.conString
3. this.sql
this.driverName="oracle.jdbc.driver.OracleDriver";
this.conString="jdbc racle:thin:admin/user@backup..com.sg:1521 rcl";
this.sql="select * from Table1";
So I want to save this three parameter value in a text file, so every time I want to change it, I only need to change the text file, so all the java program will be change.
So how should I retrieve this parameter value from this text file? Or any other ways can slove this problem?
cheers
Eric
23 years ago
Hi, All:
I have few java program, they are using the same value for this three parameter.
1. this.driverName
2. this.conString
3. this.sql
this.driverName="oracle.jdbc.driver.OracleDriver";
this.conString="jdbc racle:thin:admin/user@backup..com.sg:1521 rcl";
this.sql="select * from Table1";
So I want to save this three parameter value in a text file, so every time I want to change it, I only need to change the text file, so all the java program will be change.
So how should I retrieve this parameter value from this text file? Or any other ways can slove this problem?

Thanks for all the replies.
cheers
Eric
23 years ago
Hi Somas kanthan:
Thank you for the reply, now I have recall back my password. Thanks a lot.
Happy new year!
Eric
23 years ago
Hi All:
I have a Microsoft Access database file, but I have lot the password. Because I do it long time ago, so is it any ways I can see the data to skip the password. or export to another format database file?
Please help me this, I reall need the data.
regards
hongwei
23 years ago
Hi, All:
Hope someone can help me this problem? Any reply will be help for me.
regards
Eric
23 years ago