I want to connect from Tomcat to Apache HTTP Server. 

I am using Velocity.

I want to connect from one server to another 

+----------------+  (service) +----------------+            
+----------------+
| Tomcat          |  ------->    | Apache HTTP |  -------> | Web Browser |
+----------------+                +----------------+            
+----------------+
 
Adding the client as a proxy is poor design.

+----------------+             +----------------+ (new
req)+----------------+ (resp) +----------------+ 
| Tomcat          |  -------> | Web Browser |  ------->   | Apache HTTP |
------->| Web Browser | 
+----------------+             +----------------+              
+----------------+           +----------------+

Reconnecting remotely from the client, while useful for client driven RPC's
is not a good way to solve this problem because it entails 2 negatives: 
 1) Roundtrip to the client (inefficient design, slow, extra HTTP req) 
 2) extra code used to make just the connection to the server

This problem is to have a text become decorated. 

The text will be filtered/decorated before it is sent to the client. The
decoration will be done by a PHP script.

How can a velocity template call an external service, or at least call a JSP
or tag in Tomcat?

Thank you,

Garrett

Erron Austin wrote:
> 
> Hmmm... I'm not a velocity expert, but that doesn't really sound possible.
> From your post, I would think an ajax solution would fit perfectly here.
> 
> Just my .02
> 
> 
> On 5/22/07, Garrett Smith <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Is it possible to invoke a jsp tag from velocity? If not, can I
>> include a jsp? What about making a request to apache HTTP server (from
>> Velolcity engine)?
>>
>> I want to call a php function (GeSHi) that is not handled by Tomcat.
>> For this, I was considering to use <c:import
>> url="http://myhost.com/php/geshi.php"/>, If I can go straight to the
>> PHP, that would also work.
>>
>> Thanks,
>>
>> Garrett
>> --
>> site still down.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Include-a-jsp-or-invoke-a-tag--Make-request-to-Apache-HTTP-server--tf3801577.html#a10757385
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to