You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jose Euclides da Silva Junior - DATAPREVRJ <Jo...@rj.previdenciasocial.gov.br> on 2003/06/12 17:59:56 UTC

jsp:getProperty Bug in TomCat 4.1.18 (running log attached) - st op using tomcat

In TomCat 4.1.18, its impossible to get any bean content as bellow! The
TomCat's running process seems to be WRONG.Why? The code bellow is correct,
and runs fine in OC4J! Unfortunately, I am thinking in stop using TomCat
forever...
Euclides.

----------------->
<font class="Style_1"><a
href="http://wtrjo210/ConsultaDica?pagina=pagina_atual&indice=i"><B><jsp:get
Property name="dica" property="nomeDica" /></B></a></font>
----------------->

But, this  bean property is well defined into my Javabeans!!!

Take a look at the log running process of Tomcat:
 dica = (euc.Dica) pageContext.getAttribute("dica", PageContext.PAGE_SCOPE);
        if (dica == null){
          try {
            dica = (euc.Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "euc.Dica");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " +
"euc.Dica", exc);
          }
          pageContext.setAttribute("dica", dica, PageContext.PAGE_SCOPE);
        }


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org