perl scripts and JSP...

B

balgach

Hello all,

I have a perl script which parses through a local log file, and prints
some output to stdout. i would like to be able to view the output of
this file from the web, typically through JSP, which i have some
moderate programming experience. Is this possible? To do local
execution calls through a JSP? or am i going to have to recode the Perl
scrip in the jsp. and if the later is the case, how would i open a
local file for reading? thanks.

Cheers,
Adam.
 
C

Chris Smith

I have a perl script which parses through a local log file, and prints
some output to stdout. i would like to be able to view the output of
this file from the web, typically through JSP, which i have some
moderate programming experience. Is this possible? To do local
execution calls through a JSP? or am i going to have to recode the Perl
scrip in the jsp. and if the later is the case, how would i open a
local file for reading? thanks.

Depends on the JSP environment. If you're deploying to a simple Tomcat
install, then the answer is probably yes. However, it is quite possible
(and sometimes considered good practice in larger enterprise
environments) to install a SecurityManager to prevent web applications
from performing unauthorized actions. So it depends on the
configuration.

As for how to do it... the best way would be to write the code in Java,
and map it to a JSP custom tag with a TLD file. This is a little too
exotic for a scriptlet, even by liberal standards.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top