%@ page import="com.ibm.websphere.product.WASDirectory,java.util.Locale,org.apache.struts.util.MessageResources"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String lang = response.getLocale().toString();
String masterCSS = "Master.css";
if (lang.equals("ko") || lang.equals("zh") || lang.equals("zh_TW") || lang.equals("ja_JP"))
masterCSS = lang + "/" + masterCSS;
%>
<%
WASDirectory wd = new WASDirectory();
String productId = null;
String prod = null;
String info = null;
if (wd.isThisProductInstalled(WASDirectory.ID_EMBEDDED_EXPRESS))
productId = WASDirectory.ID_EMBEDDED_EXPRESS;
else if (wd.isThisProductInstalled(WASDirectory.ID_EXPRESS))
productId = WASDirectory.ID_EXPRESS;
else if (wd.isThisProductInstalled(WASDirectory.ID_ND)) {
productId = WASDirectory.ID_ND;
} else
productId = WASDirectory.ID_BASE;
String sep = "---------------------------------------";
String prodVer = new String(wd.getVersion(productId));
if (prodVer.startsWith("6"))
info = "pix";
else
info = "compass";
String prodNameVer = new String(wd.getName(productId) + ", " + wd.getVersion(productId));
Locale locale = (Locale)session.getAttribute(org.apache.struts.Globals.LOCALE_KEY);
MessageResources messages = (MessageResources)application.getAttribute(org.apache.struts.Globals.MESSAGES_KEY);
String[] messageargs = {"5724-J34","2004, 2007"};
String copyright = messages.getMessage(locale,"welcome.copyright",messageargs);
String aboutText = prodNameVer + "\n" +
messages.getMessage(locale, "about.build.num") + " " + wd.getBuildLevel(productId) + "\n" +
messages.getMessage(locale, "about.build.date") + " " + wd.getBuildDate(productId) + "\n" +
sep + "\n";
if (wd.isThisProductInstalled("WXDOP")) {
prod = wd.getName("WXDOP");
prodNameVer = new String(wd.getName("WXDOP") + ", " + wd.getVersion("WXDOP"));
aboutText += prodNameVer + "\n" +
messages.getMessage(locale, "about.build.num") + " " + wd.getBuildLevel("WXDOP") + "\n" +
messages.getMessage(locale, "about.build.date") + " " + wd.getBuildDate("WXDOP") + "\n" +
sep + "\n";
}
if (wd.isThisProductInstalled("WXDCG")) {
prod = wd.getName("WXDCG");
prodNameVer = new String(wd.getName("WXDCG") + ", " + wd.getVersion("WXDCG"));
aboutText += prodNameVer + "\n" +
messages.getMessage(locale, "about.build.num") + " " + wd.getBuildLevel("WXDCG") + "\n" +
messages.getMessage(locale, "about.build.date") + " " + wd.getBuildDate("WXDCG") + "\n" +
sep + "\n";
}
if (wd.isThisProductInstalled("WXDDG")) {
prod = wd.getName("WXDDG");
prodNameVer = new String(wd.getName("WXDDG") + ", " + wd.getVersion("WXDDG"));
aboutText += prodNameVer + "\n" +
messages.getMessage(locale, "about.build.num") + " " + wd.getBuildLevel("WXDDG") + "\n" +
messages.getMessage(locale, "about.build.date") + " " + wd.getBuildDate("WXDDG") + "\n" +
sep + "\n";
}
aboutText += copyright;
%>
|
Extended Deployment Library
|
WebSphere Extended Deployment Library"/>
|
|
|
|
|
|