Results 1 to 5 of 5

Thread: Reference a local jsp page in a zimlet

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    7

    Default Reference a local jsp page in a zimlet

    Hey, not to sound cliche, but I'm a zimlet newbie. I was wondering if anyone knows how to reference a local JSP page in the actionURL tag? The page is packaged inside of the zimlet zip file. Here's the code that I have. This program brings up a JSP page when you click a sequence of 3-6 digits in an email:

    <zimlet name="com_zimbra_anotherjspzimlet" version="1.0" description="anotherjspzimlet">
    <!-- An attempt at an example zimlet file using jsp-->
    <contentObject>
    <matchOn>
    <regex attrs="ig">\d{3,6}</regex>
    </matchOn>
    <toolTipText>
    Click on the site number to view it's information.
    </toolTipText>
    <onClick>
    <canvas type="window" width="800" height="600"/>
    <actionUrl target="/service/zimlet/com_zimbra_anotherjspzimlet/anotherjsppage.jsp">
    <param name="myNumber">${src.objectContent}</param>
    </actionUrl>
    </onClick>
    </contentObject>
    </zimlet>

  2. #2
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by newtonh20 View Post
    Hey, not to sound cliche, but I'm a zimlet newbie. I was wondering if anyone knows how to reference a local JSP page in the actionURL tag? The page is packaged inside of the zimlet zip file. Here's the code that I have. This program brings up a JSP page when you click a sequence of 3-6 digits in an email:

    <zimlet name="com_zimbra_anotherjspzimlet" version="1.0" description="anotherjspzimlet">
    <!-- An attempt at an example zimlet file using jsp-->
    <contentObject>
    <matchOn>
    <regex attrs="ig">\d{3,6}</regex>
    </matchOn>
    <toolTipText>
    Click on the site number to view it's information.
    </toolTipText>
    <onClick>
    <canvas type="window" width="800" height="600"/>
    <actionUrl target="/service/zimlet/com_zimbra_anotherjspzimlet/anotherjsppage.jsp">
    <param name="myNumber">${src.objectContent}</param>
    </actionUrl>
    </onClick>
    </contentObject>
    </zimlet>
    Take a look at Zimbra HTML sample Zimlet (IIRC).; It uses a JSP page if I recall correctly.

  3. #3
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    I don't understand why you ask this question and give yourself the example that answer it.
    You just have to use :
    <actionUrl target="/service/zimlet/name-of-the-zimlet/name-of-the-jsp-page.jsp">

  4. #4
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    7

    Default Example Doesn't Work

    I tried that and it didn't work. We're ending up just putting the page on one of our intranet servers and accessing it that way.

  5. #5
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    It didn't work? Did you put your jsp in the zimlet? In the folder where you have your xml definition file. If not, it is normal it didn't worked.

    If it is not in the same folder, you can try with an url like file://path-to-your-jsp-file to access a local file (I never tested it through).

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  2. postfix transport maps
    By pheonix1t in forum Administrators
    Replies: 12
    Last Post: 01-17-2009, 10:42 PM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  4. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 07:38 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •