[greenstone-devel] Re: About create program and call functions in Greenstone 3

From Suthanya Doung-In
DateWed Sep 17 22:03:11 2008
Subject [greenstone-devel] Re: About create program and call functions in Greenstone 3
In-Reply-To (48CF5E75-9080903-cs-waikato-ac-nz)
Dear Anupama,

Thank you very much for your help.;-) Yes, I am not changing Greenstone
source code, Just develop my new interface and call greenstone
functions for storage and retrieve information. I have followed the link


especially 4 Eclipse Java Basic. It is very useful. Could i ask the
questions please?

If i try to write the script by Java Servlet eg. display items in
collection similar like(not the same) LibraryServlet, i must add jar
files into this project, Is it right?

and if i would like to add more functions into this web page such as
save the result search, i have to create the new service and include in
servicerack maybe serviceSaveResult or not? or just include this
codes(for save result) in my script not in serviceRack?

Many thanks in advance.

Best Wishes,
Suthanya Doung-in

Anupama of Greenstone Team wrote:
> Suthanya Doung-In wrote:
>> For LibraryServelet.java, it call MessageRouter and Receptionist,
>> sending the parameter and recieve the resul page. That is mean i can
>> use java servlet call greenstone' function for retrieve metadata as
>> well, is it right?.
> Certainly. And I think you may already have found the classes that will
> show you how to invoke those methods.
>> I would like develop my program and call functions from
>> greenstone by eclipse. I have to import all greenstone codes into
>> this project? Last time i try to load greenstone source codes into
>> eclipse by using Subscripse. It doesn't work. However i have
>> Greenstone3 source codes in Hard drive already. Could i ask you how
>> to run this codes and if i write the script to call greenstone
>> function in later time, i can test the script as well.
> As I understand it, you are not trying to modify Greenstone's own
> internal code (which means you do not need to recompile any of
> Greenstone's code). Instead, it looks to me like you intend to write
> code that calls Greenstone functions (i.e. a client program that calls
> the MessageRouter's methods). If this is indeed the case, you do not
> need to import Greenstone's own source code into Eclipse. You just need
> to include the gsdl3.jar file and a few other items. Please have a look at
> http://wiki.greenstone.org/wiki/index.php/Using_Eclipse_with_Greenstone_3#Eclipse_project_for_programs_using_Greenstone_3_code
> Regards,
> Anupama