The moose likes Struts and the fly likes override Struts BaseFieldTag.renderInputElemen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "override Struts BaseFieldTag.renderInputElemen" Watch "override Struts BaseFieldTag.renderInputElemen" New topic

override Struts BaseFieldTag.renderInputElemen

prithivirajan dhamodharan

Joined: Feb 19, 2007
Posts: 6
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.
I agree. Here's the link:
subject: override Struts BaseFieldTag.renderInputElemen
It's not a secret anymore!