AnsweredAssumed Answered

Where does the jsp to bean attribute mapping occur?

Question asked by davewhit on Feb 10, 2006
Latest reply on Feb 10, 2006 by kevinr
I apologize in advance for asking what may turn out to be a rudimentary question, but I've done a lot of searchiing around and though I have some hunches, I don't have a definitive answer.

What I'm wondering is, is where the mapping occurs when a JSP calls an attribute of a given bean.  For example, consider the following snippet:

<h:outputText value="#{AddContentWizard.stepTitle}" />

I've checked the AddContentWizard class and it does not have a property called stepTitle. As far as I can tell it seems to be calling the AddContentWizard.getStepTitle method.

If this is the case, I'd like to know:
1) where stepTitle the attribute gets mapped to getStepTitle the method or if I'm entirely misguided about the mapping technique that's in use here.
2) (assuming my mapping hunch is correct) what would be the syntax for passing arguments from the jsp to the method.
3) (again, assuming my mapping hunch is correct) can the return type be anything other than a String?

Thanks in advance.