Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-142

bean:define not defaulting to String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0 Beta 1
    • 1.0.0
    • Tag Libraries
    • None
    • Operating System: All
      Platform: PC
    • 1422

    Description

      In the definition:

      <bean:define id="currAccount" scope="session" type="java.lang.String" value="<%
      = (String) session.getAttribute(Tags.CURRENTACCOUNT) %>" />

      if type is not entered, the default ends up trying (and failing) to be

      com.netscape.jsp.JSPTree currAccount = null;

      in the java file generated by the JSP.

      Casting resolves the problem.

      Attachments

        Activity

          People

            craigmcc Craig R. McClanahan
            keith.morrell@telecom.co.nz Keith Morrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: