Hello all,
I am trying to write the simple hello world program by java sun. The thing
that the implemnetation of the interface is in seperate class than the
server. The tutorial on the web just shows you that the implementation
returns a simple string "hello world". What if I want to return a preperty
of the serve (say the value of the variab) or if I want to use a function
written in the server class? How would I be able to use the server's
information if the implemnatation is in different class?!
Thank you very much for your help
David Moss - 24 Oct 2005 01:51 GMT
> Hello all,
> I am trying to write the simple hello world program by java sun. The thing
[quoted text clipped - 4 lines]
> written in the server class? How would I be able to use the server's
> information if the implemnatation is in different class?!
If you have a server it is serving something.
Most likely requests for information.
Write a servlet for your server that returns the information you seek.
Write a function in your application that calls the servlet.
Use the result in your application same as any other variable.

Signature
DM
personal opinion only