Chan Apex

Greenhorn
+ Follow
since Oct 26, 2010
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 Chan Apex

I loaded classes12.jar, tomcat-dbcp.jar, and all struts .jar files.
javax.sql.DataSource dataSource;
java.sql.Connection myConnection=null;
try {
dataSource = getDataSource(request);
myConnection = dataSource.getConnection();
Statement stmt=myConnection.createStatement();
}
catch(Exception e) {
//
}

giving the compile time error at getDataSource(request) method.
What is the problem??
13 years ago
I configured BasicDataSource in struts-config.xml file. when i'm accesing getDataSource(request) for DataSource object, it's giving error. I already added all jar files in lib folder. What is the problem? Please clear my doubt.
Thanks in advance.
13 years ago
A normal ResultSet data isn't retrieved until you do the next call. The ResultSet isn't a memory table, it's a cursor. Suppose the problem sorted out for the less than 1 lack records. but how to get more than that count??
may be more than that count...
One of my friend asked me this question. How can i get the data @ very fast from the table if it has 1 lack of records using jdbc resultset ? please clear my doubt?

Thanks in advance.
('');
yes..we have to override equals() and hashCode() methods to remove dupicates in the Set..
13 years ago

class single{
private single(){ }
single ob;
public static single getInstance()
{
if(ob==null)
ob=new single();
return ob;
}
public static void main(String ...a)
{
getInstance();
}

Upto this ok! but how to stop cloning..

I already spend so much time in searching for it...but it doesn't clarify..that's i posted my doubt..

please clear it.
Thanks

13 years ago
i know about singleton object i.e. creating a single instance and reusing that object again and again...but how can we stop it from cloning...?javascript:emoticon('');
13 years ago
I have confusion in using marker interface..what's the functionality of marker interface..
13 years ago
I want to know which approach is the better one??
Please clarify my doubt with an example.
Thanks
13 years ago
can anybody tell DAO working process in Struts??

Thanks
13 years ago