Forums / Developer / jsp + templates

jsp + templates

Author Message

anne martinet

Wednesday 06 August 2008 4:46:06 am

Good morning,

I would like to know if you can write jsp in the templates. And if so, how.
If you can not write jsp in the templates, how can you do with an extension .....
php call a script file. jsp?
where should find this file. jsp?

thank you in advance

André R.

Wednesday 06 August 2008 10:52:02 pm

eZ Publish runs on PHP, it is one of the most popular web server platforms, the most known are PHP, Java, .Net, Coldfusion, Phyton and Ruby. '.jsp' is a Java technology, and can not easily be mixed with the other server platforms like PHP.

But, ezfind uses Solr, a Java based search engine, and it works like this:
ezfind is a bunch of PHP code to make handle all updates / indexing / searching in eZ Publish.
But in the background these actions are sent using a http (alternatives in your case: Soap,Rest, Post or a simple Get) request to a Java server on the same machine (you can set it up on a different machine as well, but that would increase latency a bit) using a different port ( on ezfind its normally http://localhost:8984 ).

Edit: If your talking about .js (client side JavaScript) on the other hand, then you can easily mix the code with the (x)html in your templates.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Maxime Thomas

Thursday 28 August 2008 11:26:32 pm

There's a way, a tricky one, but a way to do that.
For one of my project, we put JSP code directly in templates between literal markups. We generated a static export to another plateform (Websphere portal) which will run those files and will serve it to the user.
We just did that because our client would like to keep his Websphere license. Another point is that when mixing two technologies, you are presuming to face more bugs...

Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

anne martinet

Friday 29 August 2008 12:13:34 am

thanks for your answers, I try this solution.

:)