Results 1 to 6 of 6

Thread: java and zimlets

  1. #1
    SageMajor is offline Senior Member
    Join Date
    Dec 2008
    Location
    Orange County
    Posts
    65
    Rep Power
    6

    Default java and zimlets

    I am looking at the sourceforge zimlet and I see there is a welcome.jsp in there. Is it possible to use jsp rather than JS to do zimlets? I have much of my code needed alredy written in java, and it looks like I can integrate with it much easier than rewriting everything in JavaScript.

    If it is possible please point me in the right direction.

    Sage

  2. #2
    Chewie71 is offline Trained Alumni
    Join Date
    Sep 2006
    Location
    Illinois
    Posts
    371
    Rep Power
    8

    Default

    Hiya,

    I'm no expert, but have done a little Zimlet programming. As far as I understand....you will probably need a little Javascript....but you can do all the heavy programming in JSP.

    For mine, the Javascript handles all the UI operations, but my JSP is where all the external calls and programming work gets done.

    You might be able to get by with just the Zimlet XML if all you need is a Zimlet icon and a menu item or two. The moment you get any more complicated than that in the UI, you will have to use Javascript. That's been my experience anyway.

    Matt

  3. #3
    SageMajor is offline Senior Member
    Join Date
    Dec 2008
    Location
    Orange County
    Posts
    65
    Rep Power
    6

    Default

    I have read through the zimlet developement guide and it only talks about JavaScript. Can you give me a quick intro on how to even connect the JavaServerPage to the zimlet.

    All of my data will be out from zimbra, I do not plan to display anything other than a popup of the application with all the data from the zimbra calendar filled in for my users.

    Thanks
    Sage

  4. #4
    SageMajor is offline Senior Member
    Join Date
    Dec 2008
    Location
    Orange County
    Posts
    65
    Rep Power
    6

    Default

    I moved the com_zimbra_jspsample into the _dev directory and undeployed it from the admin console.

    Code:
    HTTP ERROR: 404
    NOT_FOUND
    RequestURI=/service/zimlet/com_zimbra_jspsample/sample.jsp
    Powered by Jetty://
    But my jsp is in
    /service/zimlet/_dev/com_zimbra_jspsample/sample.jsp

    So I modify the xml file and reload the web browser. I then get
    Code:
    HTTP ERROR: 404
    NOT_FOUND
    RequestURI=/service/_dev/zimlet/com_zimbra_jspsample/sample.jsp
    Powered by Jetty://
    What should I be doing to get the jsp to be used?

  5. #5
    SageMajor is offline Senior Member
    Join Date
    Dec 2008
    Location
    Orange County
    Posts
    65
    Rep Power
    6

    Default

    looking around I found this file

    Code:
    /opt/zimbra/./jetty-6.1.5/work/service/jsp/org/apache/jsp/zimlet/com_005fzimbra_005fjspsample/sample_jsp.class
    I did not find s similar one in the _dev directory
    Code:
    ./jetty-6.1.5/work/service/jsp/org/apache/jsp/zimlet/com_005fzimbra_005fjspsample/sample_jsp.class
    How do I compile the jsp file with zimbra other than to remove and redeploy with a new zip file?

    Sage

  6. #6
    mcrocker is offline New Member
    Join Date
    Mar 2009
    Posts
    4
    Rep Power
    6

    Default

    I think you want

    <actionUrl target="/service/zimlet/_dev/com_zimbra_jspsample/sample.jsp"/>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Java server-side Zimlets
    By gambo in forum Developers
    Replies: 1
    Last Post: 09-29-2008, 09:26 PM
  2. Need guidance for developing zimlets
    By jiggy in forum Developers
    Replies: 12
    Last Post: 02-23-2007, 04:32 AM
  3. zimlets problem
    By kowell in forum Administrators
    Replies: 1
    Last Post: 06-11-2006, 07:07 PM

Posting Permissions

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