Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > perl scripts and JSP...

Reply
Thread Tools

perl scripts and JSP...

 
 
balgach@gmail.com
Guest
Posts: n/a
 
      09-18-2005
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.

 
Reply With Quote
 
 
 
 
Chris Smith
Guest
Posts: n/a
 
      09-18-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) <(E-Mail Removed)> wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Python Scripts with IIS - ASP or Python-based CGI scripts withIIS - which makes more sense? davidj411 Python 0 06-27-2008 04:38 PM
What is required for perl scripts to run correct when launched from rc scripts on HPUX 11? deanjones7@gmail.com Perl Misc 13 09-10-2007 11:58 AM
Stupid question: Making scripts python-scripts Jan Danielsson Python 8 07-22-2005 12:20 AM
Re: Stupid question: Making scripts python-scripts Jp Calderone Python 0 07-21-2005 02:38 PM
2 naive questions: Perl 6; Perl vs. shell scripts J Krugman Perl Misc 7 06-14-2004 02:14 PM



Advertisments