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

    jsp:getProperty

    Neil Hornbeck Newbie

      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
          Mikael Eriksson Novice


          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 Novice

            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
              Colin Vella Newbie


              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.