150 Implementing Web Applications with CM Information Integrator for Content and ODWEK
To put it together in a JSP file, follow these steps:
1. Create a new JSP file. See the detailed steps of creating a JSP file from
“Implementing to a JSP file” on page 134.
2. Name the file CMretrievePlots.jsp.
3. Add the import directive in the beginning of the file:
<%@ page import="com.ibm.mm.sdk.server.*,
com.ibm.mm.sdk.common.*"%>
4. Add the following Java script in the <HEAD> tag, just before the ending
</HEAD> tag.
<Script Language="JavaScript">
function ViewObject(fpid)
{
window.open("/II4CProject/ViewObject.jsp?PID="+fpid,"_blank","toolbar=0,scr
ollbars=0,location=0,statusbar=1,menubar=0,resizable=1,width=500,height=670
");
return false;
}
</Script>
5. Within t ...