<%-- ********* 10questions - clients.txt ******************** 4/19/06 - new comments below, just in case anybody cares 4/17/06 - new sandbox, after fixing symbol default; keep version 0 4/11/06 - make sandbox the default lexikon; biopax the newest 3/26/06 - set cliparm + (widely used) cliarg, new cliLex[] 3/16/06 - add matching cliLex[] for CSV lexikons on disk 3/02/06 - fix defaults so cliarg always gets set (to 0) 2/28/06 - create this to support multiple lexikon names ******************************************************* This logic, called by bootfile.txt, tracks namespaces. It resets the lex(ikon) variable(s) per a numeric arg, The client[] array can also populate a pull down list that lets each user freely change the one being used ******************************************************* --%> <% String client[] = {"http://sandbox.net/to/play/in/", "http://www.lexikos.com/psi/", "http://www.biopax.org/props.0/", "http://first.sandbox.net/0.3/"}; String cliLex[] = {"yurVocab1.txt", "lexikos0.txt", "biopax0.txt", "yurVocab0.txt"}; /******************************************************* Clinets get tied into lexikon files by the second array. Below is the logic, which runs as any related page loads. *******************************************************/ String cliparm=request.getParameter("c"); String cliarg=cliparm; if (null == cliarg) cliarg="0"; // default it String lex=client[0]; // default it String DSL=cliLex[0]; // default it if ("1".equals(cliarg)) { lex=client[1]; DSL=cliLex[1]; } if ("2".equals(cliarg)) { lex=client[2]; DSL=cliLex[2]; } if ("3".equals(cliarg)) { lex=client[3]; DSL=cliLex[3]; } String lexikon=lex+'#'; // expand to add '#' %>