[Zope] Java Integration
Matt Gregory
matthew.gregory@skyleach.com
Tue, 9 Apr 2002 10:26:06 -0400
But for the time-being, you can take the shortcut of calling Zope content
from Java.
My solution was to set up a URL Resource factory (J2EE spec 1.2 & 1.3
section 5.4) and then create a tag library around a helper library.
My JSP looks like this:
<%-- Simple example of use of the zope tag library --%>
<%@ taglib uri="zopetags" prefix="zope" %>
<zope:content properties="com.cti.cps.www.cpsweb" namespace="cps"
content="index_html" default_update="true"/>
Works great too. The properties file specifies the JNDI name of the URL
resource, the namespace is the zope namespace, the content is the object
being referenced. Obviously not very productive to point at an image
resource inside of the JSP, but I have a servlet which returns zope images
too. I am channel bonding my two NICs in my JSP server and the content is
served up faster than off the harddisk if Zope already has it cached. :)
The default_update part of the tag resolves implicit links and javascript
inside of zope. In other words, if you have an <a
href="some/zope/object">Myobject</a> tag in a Zope content page then the
default update turns it into <a
href="sourceserver/portal.jsp?src=some/zope/object">Myobject</a>.
It's a hack until we get a Zope J2EE app but it does get the job done. :)
----- Original Message -----
From: "André Camargo" <acamargo@supersul.com.br>
To: <zope@zope.org>
Sent: Tuesday, April 09, 2002 8:40 AM
Subject: Re: [Zope] Java Integration
> kapil thangavelu wrote:
>
> >On Sunday 07 April 2002 08:24 am, Phil Harris wrote:
> >
> >>Since Chris is teasing a little, I'll tell you how he does it :)
> >>
> >>http://jpe.sourceforge.net
> >>
> >>Download that, it has everything that you need to get it done.
> >>
> >
> >has anyone got this working under linux, i've tried a couple times over
the
> >last year and the install or the build always bugs out...
> >
>
> hi
>
> I tried that too... after several emails to mr. Giacometti, we fixed
> the bugs in his pythonx's compile process... the problem nowadays is
> compile zope with pythonx (not normal python)...
>
> I'm still waiting for a way to plug java in zope, this will be very
> cool...
>
> best regards
>
> andré
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>