The OSC SciPortal
HTML Page Construction

The CURRENT problem name is obtained by parsing:

Descriptors/users/abe/abe.xml

and getting the list of <problemName> tags. The ContextManager calls can set this and the PDTbean can obtain the current problem name.

"PDTBean.class" retrieve the property in our .jsp files: <jsp:useBean id="PDTBean" class="ccm.pdt.PDTBean" scope="session"/> <jsp:getProperty name="PDTBean" property="currentProblemName"/>

The timeStamp attribute on each problemName tag in the xml file and simply look for the highest numbered timeStamp. This attribute uses "currentTimeMillis()" method to output the timeStamp attribute.

The ContextManager can also be used.

String pname = cm.getCurrentProblemProperty("Name"); String problemContextName = getContextData(userContext,"CurrentChild");

The directory where the context data is written:

String cdir = cm.getCurrentProblemProperty("Directory");