Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: documentation, examples
    • Labels:
      None

      Description

      One question raised at the Sydney Java Users Group was does Click support JSP.

      The importance of this being for supporting important JSP taglibs, e.g. DisplayTag or existing JSP/Tag code. Or as detailed by one of the group members:

      "One thought I had was co-existence. For example, one of the attractions of
      spring was that I could easily co-exist struts and spring and if I so
      desired mix the MVC web between the two. Whilst this is not optimal,
      perhaps a sentence in your FAQ about how easy/hard it is to migrate from
      struts slowly via co-existence might be useful."

      After some playing around I realized Click does support JSP by simply forwarding to the JSP page.

      public void onGet() {
      List customers = CustomerDAO.getCustomers();
      getContext().setRequestAttribute("customers", customers);

      setForward("customers-table.jsp");
      }

      An Click Examples page demonstrating JSP integration should be included. Also the Pages and FAQ documention should be updated to detail how to do this.

        Activity

        Hide
        Malcolm Edgar added a comment -

        Comitted to CVS

        Show
        Malcolm Edgar added a comment - Comitted to CVS
        Hide
        Malcolm Edgar added a comment -

        Improved JSP support is available in release 0.13. This release includes FAQ documentation and Click Examples includes a JSP demonstration page.

        Show
        Malcolm Edgar added a comment - Improved JSP support is available in release 0.13. This release includes FAQ documentation and Click Examples includes a JSP demonstration page.
        Hide
        Ahmed Mohombe added a comment -

        Please also consider making JSPs "first class citizens".

        Also please offer support for automapping and special handling if a Page is not present but the JSP is.
        Also adding new JSPs by coping them to Webapps should work without calling the reload functionality
        like for Velocity pages (since this works by default with JSPs in application servers, and missing it would break many existing applications that would try to migrate to Click).

        Thanks in advance,

        Ahmed.

        Show
        Ahmed Mohombe added a comment - Please also consider making JSPs "first class citizens". Also please offer support for automapping and special handling if a Page is not present but the JSP is. Also adding new JSPs by coping them to Webapps should work without calling the reload functionality like for Velocity pages (since this works by default with JSPs in application servers, and missing it would break many existing applications that would try to migrate to Click). Thanks in advance, Ahmed.

          People

          • Assignee:
            Malcolm Edgar
            Reporter:
            Malcolm Edgar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development