Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

override Struts BaseFieldTag.renderInputElemen

 
Greenhorn
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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic