jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rony G. Flatscher" <Rony.Flatsc...@wu-wien.ac.at>
Subject Re: Setting the output stream of BSFManager
Date Tue, 14 Sep 2004 06:21:21 GMT
Olivier Dameron wrote:

>Dear BSF developers,
>   I used to execute a script through BSF by calling the
>BSFManager::exec(...) function.
>   The output of the script goes to System.out, and I would like to redirect
>it so that it is written in the text pane where I write my scripts. It would
>be something similar to the bsh's Console, but using BSF instead of the
>interpreter.
>
>   Is there any way to set the default output ?
>I don't see any BSFManager::setOut(PrintStream) nor any
>BSFEngine::setOut(...), but maybe there is another solution ?
>  
>
You could save a reference to the text-pane as a bean in the BSFRegistry 
and address that from your script.

Hope that helps,

---rony

---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org


Mime
View raw message