This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

including a stand-alone class  RSS feed

 
Pete Mosca
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a JSP page, how do you use a stand-alone class?

If I try to include the class, a compile error occurs.
If I try to simply use it, the symbol cannot be resolved.

The .class file is under the WEB-INF directory. It is a 3rd party class, so it cannot be modified.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I try to include the class, a compile error occurs.


Generally it's best to show the error than to just say "errors occurred".

Is the class in a package other than the default? If not, the class loader may not be able to find it. If so, make sure that you put it in the proper folder hiearchy for the package.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!