my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jsp--class.forName()" Watch "jsp--class.forName()" New topic
Author

jsp--class.forName()

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
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"manchandap",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . 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.
Thanks


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp--class.forName()
 
Similar Threads
Reflection and Jar file
Executable Jar
Gimme a hand pahdner!!!
Another custom tag question
Is it possible to run JSP on Apache 1.3