• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner class and JSP

 
buddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have main bean class classData, and inner class called channelName , I have method called getChannel which return Vector of channelName object. When I try to create obj for inner class it thows exception like
java:133: not an enclosing class: ChannelData
ChannelData.channelName cData =
new ChannelData.channelName() ; //
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's really a general Java question. However, pulling the insides out of another class to work with outside that class wouldn't be a good practice anyway. If you really need to work with the inner class as a distinct unit, it should be a non-contained class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic