The zimlet I am developing is pretty simple: it asks some words and then is prints all the records of some tables that have such words.

I did this: clicking on my zimlet icon you open a new window in apache which has PHP.

I don't like this solution because it requires to have on the same server Zimbra (which has its Apache) and Apache+PHP.

1. I want to use the zimbra window, as the "Y Local" zimlet does.

2. As far as I know javascript can't access a DB.
But the motor of Zimbra is a Tomcat (a java app), so it should be possible to add a third-party java class to access mysql DBs (how?)

Anybody can give me details for points 1 and 2 (obviously point 1 is useless if I can't read the DB within the Zimbra environment).