0 Replies Latest reply on Aug 6, 2002 8:44 AM by Priti Ranka

    jsp:param not parsed properly by compiler

    Priti Ranka Newbie

      Hi,

      I am working with JBOSS 3.0.1RC1.
      My JSPs have <jsp:include> and corresponding <jsp:param> tag.
      My application is working perfectly on weblogic 6.1

      I am trying to port it on JBOSS.
      JSPs are giving many problems. I could solve some but this one seems to be JSP compiler problem.

      I have already checked JSP specs for <jsp:param>.

      ---------------------------------------------------------
      <jsp:include page="/jsp/rfq/components/RFQHeaderComponent.jsp" flush="true">
      <jsp:param name="<%=DTEParams.REQ__SHOW_ERROR_MESSAGES%>" value="<%=(new Integer(DTEConstants.YES)).toString()%>" />
      </jsp:include>
      --------------------------------------------------------

      In RFQHeaderComponent.jsp I am trying to retrieve this info from request object.

      --------------------------------------------------------
      String strValidateData = (String) request.getParameter(DTEParams.REQ__SHOW_ERROR_MESSAGES);

      --------------------------------------------------------
      I am getting value of strValidateData as null

      So I printed request object
      __________________________________________________________

      Enumeration enum = request.getParameterNames();
      String strParamName = null;
      while (enum.hasMoreElements())
      {
      strParamName = enum.nextElement().toString();
      System.out.println(strParamName + " : " + request.getParameter(strParamName));
      }
      _________________________________________________________

      FOLLOWING WERE THE RESULTS >>>>
      _________________________________________________________

      <% : DTEParams.REQ__SHOW_ERROR_MESSAGES&#966;1
      _________________________________________________________

      If I change <%=DTEParams.REQ__SHOW_ERROR_MESSAGES%> to
      REQ__SHOW_ERROR_MESSAGES then result is correct
      _________________________________________________________

      REQ__SHOW_ERROR_MESSAGES : 1
      _________________________________________________________

      I think Jetty's Jsp compiler is having some problem with "=" in jsp:param's name attribute.

      If anybody knows solution to this please let me know.

      Thanks in advance.

      Priti