Mailing List Archive

RE: Can Execute call Java Server pages
Hi

I have a simple question.

How to make the Execute function just forward a Java Server Page file to
be executed by the server and then just get the output.

e.g.
Execute({inputfile=>"jspdocs/test.jsp", params=>[param1,param2]});

what happens if we call the function like this now is that it simply dumps
the JSP page as text.



Execute executes the file as Embperl file, which makes no sense in your
case. How should it know that this is a JSP page? If you are using mod_jserv
to execute your jsp pages, the only chance you have, is to do a http request
to fetch the page for example using LWP from CPAN, because Apache isn't able
to give you the output of a request, it always sends it directly to the
browser.

Gerald

P.S. Please ask further questions on the Embperl mailing list


-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------