|SUMit Roster Software > Nut's Weekly > August 2001 > Parameter||Nederlands · Search...|
|Monday, 20 August 2001||June 2001 July 2001 Light Trousers Island September 2001 October 2001|
How does a Java applet extract data from a database on the server?
Only HTML gets passed. Other ports won't open, not even a little bit to let familiar folks in. Hmm, from a security point of view it is 100% correct. Same story for the login code and password to the database. I'd rather keep them at server side as well. So, what to do?
Keep the program on the server?
One of the first things they show me is a Java applet, with data from a central database. Grr, how did they manage to do this? The solution excels in simplicity. I should have thought of this myself:
Back at SUMit HQ a smaller problem comes up. A Java applet needs to know the name of every parameter for the getParameter() method (Java.sun.com/...getParameter). That is a snag as I had variable parameter names in mind, with an object id included to identify one entity.
In vain I search for a method to retrieve all parameters. I'm amazed that I am unable to locate such a method. Please mail me if you do find it.
Well, as a workaround
And yes, this works: Thick client with thin client technology.
An additional advantage: I don't need the database any more for development. I just save a copy of the generated HTML and continue working off line. Today I'm far from Holland, working on the laptop to construct a thick Java applet. Long live the parameter!
|Special thanks to these gentlemen for their support:|
Ernst van Erkelens
(gatekeeper at XL Server)
|The java experts of 4uIT.|
· September 2001
Home · Search...