0 Replies Latest reply on May 31, 2005 2:56 AM by theocleminson

    Support '.' and '$' for inner class references in <jsp:useBe

    theocleminson

      I am currently evaluating JBoss as a replacement to using Weblogic. The product we are developing has a significant JSP code base with widespread use of inner classes in jsp pages.

      JBoss currently supports inner class references in <jsp:useBean> tags using the "." notation eg:

      <jsp:useBean id="viewBean"
      class="com.nested.TestComponent.InnerViewBean" />


      This is in conflict with Weblogic which only supports "$" notation,eg:

      <jsp:useBean id="viewBean"
      class="com.ispek.wls.nested.TestComponent$InnerViewBean" />


      This is a significant issue for us as ideally we'd like to support both application servers for our customers without code changes.

      We have tested against an earlier version of JBoss (v4.0) which did support the "$" notation. Unfortunately this support seems to have been removed from v4.0.1sp1 and above and now gives the following error:

      org.apache.jasper.JasperException: Unable to compile class for JSP
      An error occurred at line: 3 in the jsp file: /MyTest.jsp
      Generated servlet error:
      D:\jboss-4.0.1sp1\server\tst\work\jboss.web\localhost\test\org\apache\jsp\mytest_jsp.java:145: cannot find symbol
      symbol : class MyTestComponent$ViewBean
      location: package test



      Is it possible to once again provide support for "$" notation?

      regards,
      theo