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

[tiles] Attributes in ComponentContext set via Controller not availiabe in JSP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 1.2.7
    • None
    • Tiles 1 Plugin
    • None
    • Operating System: other
      Platform: All
    • 36124

    Description

      ComponentContext attributes set with a CustomController Class are not availiable
      with <tiles:insert> tag when nested jsp's are used.
      Example:
      Tiles definition is :

      <tiles-definitions>
      <definition name="template" path="/WEB-INF/jsp/shared/template.jsp">
      <put name="headline" value="/WEB-INF/jsp/shared/de/headline.jsp" type="page" />
      <put name="footer" value="/WEB-INF/jsp/shared/de/footer.jsp" type="page" />
      </definition>

      <definition name="booking-temp" extends="template">
      <put name="menu" value="/WEB-INF/jsp/shared/bookingmenu.jsp" type="page" />
      </definition>

      <definition name="bookingPage"
      controllerClass="de.quipus.flint.webapp.booking.BookingTilesController"
      extends="booking-temp">
      <put name="content" value="/WEB-INF/jsp/booking/bookingdata.jsp" type="page" />
      <put name="help" value="booking.html" />
      <put name="userHelp" value="/WEB-INF/jsp/shared/emptyHelp.jsp" type="page" />
      <put name="title" value="DISPOFLEET- Buchungsseite" type="string" />
      </definition>

      The ControllerClasses execute method sets the value of userHelp to an new JSP path.

      when executing the bookingdata.jsp (which contains the
      <tiles:insert name="userHelp" /> tag) the following error occurs:

      ServletException in '/WEB-INF/jsp/booking/bookingdata.jsp': Error - Tag Insert :
      No value found for attribute 'userHelp'.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ulrich@muehlgasse.de uli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: