Uploaded image for project: 'Click'
  1. Click
  2. CLK-24

JSP Integration

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • documentation, examples
    • 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.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            medgar Malcolm Edgar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: