3 Replies Latest reply on Sep 4, 2001 7:01 AM by tbfmicke

    jsp:getProperty

    neilhorn

      I have not been able to get the jsp:getProperty tag to work. <jsp:getProperty name="address" property="homeEmail"/> doesn't work while <%= address.getHomeEmail() %> will work in the same page. What am I missing?

      Thanks in advance!

      Neil

        • 1. Re: jsp:getProperty
          tbfmicke


          For the <jsp:getProperty .../ > to work you need to have defined the bean earlier with a <jsp:useBean id="address" ... />, have you done that?

          It is not enough to just declare it in a java scriptlet.

          If its not this, try posting a longer bit of the page and tell us what happens when it does not work.

          • 2. jsp:getProperty
            jules_gosnell

            I have not been able to get the jsp:getProperty tag to work. <jsp:getProperty name="address" property="homeEmail"/> doesn't work while <%= address.getHomeEmail() %> will work in the same page. What am I missing?

            Thanks in advance!

            Neil

            • 3. Re: jsp:getProperty
              nemesis


              For the <jsp:getProperty .../ > to work you need to have defined the bean earlier with a <jsp:useBean id="address" ... />, have you done that?

              It is not enough to just declare it in a java scriptlet.

              If its not this, try posting a longer bit of the page and tell us what happens when it does not work.