Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp--class.forName()

 
Prince Manchanda
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic