This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes jsp--class.forName() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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()
Similar Threads
Gimme a hand pahdner!!!
Another custom tag question
Executable Jar
Reflection and Jar file
Is it possible to run JSP on Apache 1.3