Public/Private setter method in Tag

Discussions

Web tier: servlets, JSP, Web frameworks: Public/Private setter method in Tag

  1. Public/Private setter method in Tag (1 messages)

    Quick question. In Tomcat you can have a setter method (as defined in the .tld) that is private. However, in JRun
    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.

    Thanks,

    -Newt
  2. Public/Private setter method in Tag[ Go to top ]

    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.