Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to refer to java class in same direct as jsp page ?  RSS feed

 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems simple, but it doesnt let me
if i put the class in WEB-INF/classes
and import it it works
but for some reason i need to keep the class
in same directory as the jsp page ...
but it doesnt find it ???
thanks
 
Mohamed Yousuff
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's all about adding that classes in the classpath. You need to locate the appropriate configuration file (depending on your server) and included it in the classpath.
Originally posted by sarim raza:
seems simple, but it doesnt let me
if i put the class in WEB-INF/classes
and import it it works
but for some reason i need to keep the class
in same directory as the jsp page ...
but it doesnt find it ???
thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!