1 Reply Latest reply on Sep 16, 2003 12:46 AM by jonlee

    Using getProperty in JSPs

    riddler3479

      I cannot get the jsp:getProperty to work with JBoss. I have tried using the Jetty Distribution and the Tomcat distribution, but neither one will display the value.

      If I change the getProperty tags to scriptlets, the value will be displayed.

      Is this a bug or do I need to change a setting somewhere?

      --------------------------------------------------------------
      this example will not work:
      <jsp:useBean id="today" class="java.util.Date" />

      <jsp:getProperty name="today" property="date" />
      ------------------------------------------------------------------

      this example will work:
      <jsp:useBean id="today" class="java.util.Date" />

      <%= today.getDate() %>
      ------------------------------------------------------------------

      Any help would be greatly appreciated!

      thanks-