Sukrit Sulochana

Greenhorn
+ Follow
since Oct 13, 2005
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 Sukrit Sulochana

What is an email java class? What is the meaning of reusable?

Thanks.
11 years ago
Hello,

I am trying to connect to a MS Access DB from a java class and an getting the following error:

java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver

What could be the problem?

Thanks,
Rajneesh
Hi,

In my address book application should I have different controller servlets for each task i.e. adding new, updating existing records or deleting? or just one? Likewise should I have different model java classes for each of these functions?

Thanks for your help.

--Rajneesh
12 years ago
JSP
Thanks, guys. I have now installed Webshere and wish to continue on that. I understand that it has its own JDBC driver.

Is there any tutorial on the internet that shows me how to use Webshere?

Thanks,
Rajneesh
12 years ago
JSP
Websphere is temporarily unavialable to me; so I'm using Tomcat for the time being.

Does anyone know of any free JDBC driver for connecting Java with an MS Access database?

Thanks.
12 years ago
JSP
Thank you, Anupam and Bimal. I have decided to use the MVC pattern, and I'm going to use Websphere Server instead of Tomcat because I want to learn that. Also instead of a simple login page I am going to develop an address book application.

My question:

In the book I read that the model is usually a simple Java class which talks to the database as needed. Therefore do I really need to learn how to use JDBC with JSP's, or can I just do it from the Java class?

I am basically following Anupam's design.

Thanks,
Rajneesh
12 years ago
JSP
Hello,

I'm a newbie to the Servlets and JSP world. I was reading the excellent primer on Servlets and JSP titled "Head first Servlets and JSP." I have read a few chapters and wish to utilize my knowledge so far in writing a simple login program using JSP. The database that contains ID's and passwords will be in MS Access. I am using Tomcat as the container. My initial questions are:

1. How do I access the database from the JSP? Are there examples on the internet that show me how to do it? Do I have to use JDBC?

2. Do I have to have a separate front end HTML page that handles the login and then forwards the request to the JSP, or can the JSP itself be the front end?

3. Do I need to write an XML deploment descriptor for the JSP?

I have these questions for now and would appreciate any help that I can get. I will continue to post more questions in this thread as I progress.

Thanks in advance for helping me.
Sincerely,
Rajneesh
12 years ago
JSP
Hi,

I just wrote a servlet after installed the latest version of Tomcat.

When I compile the servlet I get the errors:

package javax.servlet does not exist
package javax.servlet.http does not exist

I am able to compile and run normal java programs.

My CLASSPATH variable is set as follows:

CLASSPATH=.;"C:\Program Files\Java\jdk1.5.0_06\bin"; "C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar"; "C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip"


What could be the problem?
Thanks,
Rajneesh
12 years ago
Thank you, Tom!
12 years ago
hello,

I am following the excellent tutorial on J2EE at http://java.sun.com/j2ee/1.4/docs/tutorial/doc/.

The Sun Java System Application Server Platform 8.1 is used in the examples in the tutorial.

Does anyone know where I can get hold of this and how much does it cost?

Thank you,
Rajneesh
12 years ago
Thank you guys. I am ordering it.

--Rajneesh
12 years ago
What is the full name of the book?

Thanks.
12 years ago
Hello,

My object is to learn J2EE as quickly as possible. For that I have installed Eclipse. Could you suggest some good website or source for learning this technology? I want to start by writing a simple database access application. Are there resources on the web for doing that?

My current skills: Object-oriented programming, C++, Java.

Any help is appreciated.

Thanks,
Rajneesh
[ November 30, 2005: Message edited by: Rajneesh Joshi ]
12 years ago
Hi David,

I didn't set the classpath using the command window but through the advanced options in the system properties window. When I set the classpath for JDK using this window, normal Java programs would not compile and I had to restart. Same thing with the servlet. That's why I said: "Weird!"

I have another problem: I wrote the servlet and its deployment descriptor (web.xml), and also the HTML page to anchor the servlet. However when I open the page http://localhost:8080/ I don't see anything. What could be the problem?

I set the ANT_HOME and TOMCAT_HOME variables already.
13 years ago
Ok I had set the right classpath but it wouldn't compile because I hadn't restarted the computer. Weird! After restarting it compiled.

Thanks.
13 years ago