• Post Reply Bookmark Topic Watch Topic
  • New Topic

override Struts BaseFieldTag.renderInputElemen  RSS feed

prithivirajan dhamodharan
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thinking of writing customize Struts TextTag by extending it. And override the protected renderInputElement() available in BaseFieldTag.

Unfortunately this method is not accessible/visible in my class which extends BaseFieldTag.

I understand there is some kind for restriction for protected access - where the protected access level gives access to any class inside the same package or any subclass where it is declared. So according to the above said rule my class should have access to protected methods but it doesn't have it.

Help me to understand why i can't access the protected method in the sub-class belonging to different package.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!