This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!

Himal Chuli

Ranch Hand
+ Follow
since Aug 06, 2002
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 Himal Chuli

hi folks,
i am sure a lot of you should have a lot experiences in configuring and running mysql in Linux. i am having so much of difficulty here.
i just installed mysql in linux and now rebooted the machine. now it's so hard to figure out how to start the mysql server. could you please guide me an easy way out with it.
thanks.
hi folks,
i am sure a lot of you should have a lot experiences in configuring and running mysql in Linux. i am having so much of difficulty here.
i just installed mysql in linux and now rebooted the machine. now it's so hard to figure out how to start the mysql server. could you please guide me an easy way out with it.
thanks.
18 years ago
thanks guys for your prompt help but i still don't seem to get it working. As Dirk mention, i unjar and put it into CLASSPATH, still it does not find the org.gjt.mm.mysql.Driver. i even tried using Connector/j as Gregg mentioned, still the problem is same. i am tired but i need to get it working. wonder if i am doing something wrong here. i don't know why it does not work. please give me help here.
thanks.
hi folks,
i downloaded mm.mysql-2.0.14-you-must-unjar-me and put it in CLASSPATH. trying to make a connection to mysql from a servlet. when i execute servlet, gives me the following error;
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver .could you please give me a hints where did i go wrong?
thanks.
thanks for your reply to my concerns which helped me understand relatively better than before. But where and how is the java:comp/env defined so that JNDI recognize it? could i find the place it is defined and change it to something i would like to?
thanks.
hi folks,
i always run into the following line of code as far as database connection is concerned from servletcontext:

i never seem to find out where the java:comp/env is defined. can you please explain me whatjava:comp/env is and where it is set up so that we could use it? thanks.
[ April 08, 2003: Message edited by: Himal Chuli ]
hi folks,
new to mysql and tomcat. trying to find some tutorial on it. found code examples like the following:

the part that i don't seem to understand is this:
where is the "java:comp/env" set up? could anyone please educate me on it? i would appreciate if you could provide me some sites or examples that takes me through configuring tomcat and mysql.i would like to get database connection exactly as shown above not using "forClass".
thanks.
18 years ago
hi folks,
have anyone tried using tomcat 5? i just installed it and tried playing with it. it has two ContextPaths, namely servlets-examples and jsp-examples, which works fine. but i could not find these two defined in "server.xml" like they used to be in tomcat4.x and even in lower version. since they are not defined in "server.xml" file, i am wondering how does the tomcat recognize these two contexts. can anyone please explain me or even forward me to the site that has information about it?
thanks.
18 years ago
hi folks,
i have just installed WAS4.0 in windows2000. i am using oracle9i. it installed fine but when i start IBM WS AdminServer, gives me the following warning:
can you please tell me what went wrong and how do i correct it?
thanks.
18 years ago
hi folks,
is there any free mock exam for 1Z0-007? would appreciate if you could let me know any.
thanks.
18 years ago
hi mathew,
thanks for your response again. yes, i put the port like this <set-property property="url" value="jdbc:mysql://localhost:3306/test". test is a database i wanted to connect with which has a test table. when i hit the submit button that is supposed to get another page with information from database, gives me an error like this:

i still don't know why. please help me with it.
thank.s
18 years ago
hi mathew and axel,
thank you for you response. while web.xml can be configured to access database, i am also trying to get it done with configuring in struts-config.xml (setting tags like <datasources>,<datasource>...etc). that's what i am wondering if you guys could help me with.
currently i have my struts-config.xml set up like following:

but for some reason, it doesn't work."test" is the table i trying to connect with that reside in mysql database.i would appreciate if you guide me in this regard.
happy new year 2003.
thanks.
18 years ago
hi folks,
i am a novice about struts application and trying to connect a mysql database from struts application. i would appreciate if someone could teach me how to configure it so that i can access database from struts. even any online link would be a big help.
thanks.
18 years ago
hi folks,
i created a servlet and deployed in tomcat. when i do like this:
http://localhost:8080/myproject/servlet/Try, gives me the following error

i have a directory structure like this

i also checked a server.xml file and delcared myproject as servletcontext in that file in conf folder.
if i put Try.class in exmpales folder that's created when tomcat is installed, access like this
http://localhost:8080/examples/servlet/Try, works fine.
but why does not work while putting it in myproject? can someone explain me.
thanks.
18 years ago