File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes jsp--class.forName() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jsp--class.forName()" Watch "jsp--class.forName()" New topic


Prince Manchanda
Ranch Hand

Joined: Jun 25, 2001
Posts: 52
I am using Class cls= Class.forName("..."); in my jsp file.
but when i run it gives compilation failed and unable to load the class file.
Where should i load the class file.
I have tried by keeping the class file in the same directory as the jsp file and also by keeping the class file in the directory where the jsp engine keeps the compiled files(i.e. the class files for the jsp file).

Thanks and Regards
P Manchanda
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: jsp--class.forName()
It's not a secret anymore!