Re: How can I call Beanshell methods from Java?

Sid Kar <[email protected]> Wed, 15 Apr 2009 09:51:25 -0400
Newsgroups gmane.comp.java.beanshell.user
Message-ID <[email protected]>
Thank you David,

If I have  for example 10 methods in my script file, after loading it, can I
call a specific method?

Sid

On Wed, Apr 15, 2009 at 9:47 AM, David A. Lee <[email protected]> wrote:

>
> http://www.beanshell.org/manual/quickstart.html#Calling_BeanShell_From_Your_Application
>
>
>
>
>  How can I call a method scripted in Beanshell script (externally saved
>> file
>> loaded in Java using Interpreter)?
>>
>> I wish to define a PDF file structure (using iText) in a beanshell script,
>> in different methods, such as PDF Title, Table Header, Table Rows, Trailer
>> and so on, and then call them as needed from my Java bean. This will
>> basically allow me to define my PDF file structure externally in the
>> beanshell script, but will allow me to plugin the data from my Java bean
>> (more secure).
>>
>> Thank you
>> Sid
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> High Quality Requirements in a Collaborative Environment.
>> Download a free trial of Rational Requirements Composer Now!
>> http://p.sf.net/sfu/www-ibm-com
>> _______________________________________________
>> Beanshell-users mailing list
>> Beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/beanshell-users
>>
>>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com