PDA

View Full Version : [JSP] Stampare le variabili d'ambiente come "phpinfo();" è possibile?!


Matrixbob
21-06-2005, 12:52
... sapete come fare il famoso script:

<?php
phpinfo();
?>

, in versione scriptelet JSP?"

Matrixbob
21-06-2005, 13:47
Cavolo ho scoperto che esiste anche (ovviamente) aspinfo();
http://home.schule.at/aspinfo.asp

e possibile che non esiste (ovviamente) javaInfo(); o sorta di funzione simile:
<%= jspInfo() %>

che ottenga la stessa cosa?!

Porc!! :muro: :mc:

Matrixbob
21-06-2005, 14:03
Magari come per il CGI-PERL:

#! C:\Perl\bin\perl.exe
##
## printenv -- demo CGI program which just prints its environment
##

print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV)))
{
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}

Matrixbob
24-06-2005, 17:49
UP!

In JAVA come si farebbe?!