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

bean:define not defaulting to String

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta 1
    • Fix Version/s: 1.0.0
    • Component/s: Tag Libraries
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: