Web tier: servlets, JSP, Web frameworks: Public/Private setter method in Tag
Quick question. In Tomcat you can have a setter method (as defined in the .tld) that is private. However, in JRun
- Posted by: Jason McKerr
- Posted on: September 27 2001 18:20 EDT
you get an error message that says the method does not exist.
Jrun is obvioulsy validating the taglib to the actual class.
The question is this, should tag mutators be public by requirement or not? Which is the properly specified behavior? Anyone?
This creates portability issues. I'd also be interested to see if anyone else has run into this on other app-servers.
According to JSP specification setter methods are supposed to be found by container through reflection API - and they follow JavaBean specification in this respect. So public access is apparently a requirement.