[Ejtools-cvs] applications/jndi.browser/src/webapp/content detail.xml,NONE,1.1 detail.jsp,1.2,1.3 in
Brought to you by:
letiemble
From: <let...@us...> - 2002-05-30 22:43:25
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/webapp/content In directory usw-pr-cvs1:/tmp/cvs-serv21497/jndi.browser/src/webapp/content Modified Files: detail.jsp index.jsp index.xml style.xsl Added Files: detail.xml Log Message: Basic Web App --- NEW FILE: detail.xml --- <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <Page title="MBean View" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> <!-- ======================================== --> <!-- Header --> <!-- ======================================== --> <TitleBlock title="Detail View"> <Path> <Element> <html:link forward="home">Agent View</html:link> </Element> <Element>Detail View</Element> </Path> </TitleBlock> <!-- ======================================== --> <!-- Spacer --> <!-- ======================================== --> <Spacer/> <Frame> <!-- ======================================== --> <!-- Context Detail --> <!-- ======================================== --> <HeaderBlock> <table border="0" width="100%" bgcolor="#EEEEEE" cellspacing="0" cellpadding="3"> <tr> <td align="right" nowrap="true"> <b>Name :</b> </td> <td align="left" width="90%"> <bean:write name="detail.info.descriptor" property="displayName"/> </td> </tr> <tr> <td align="right" nowrap="true"> <b>Description :</b> </td> <td align="left" width="90%"> <bean:write name="detail.info.descriptor" property="shortDescription"/> </td> </tr> </table> </HeaderBlock> </Frame> <!-- ======================================== --> <!-- Spacer --> <!-- ======================================== --> <Spacer/> <!-- ======================================== --> <!-- Test for Properties --> <!-- ======================================== --> <bean:size name="detail.info.properties" id="propertiesSize"/> <logic:greaterThan name="propertiesSize" value="0"> <PropertiesBlock> <!-- ======================================== --> <!-- Properties List --> <!-- ======================================== --> <logic:iterate name="detail.info.properties" id="property" type="java.beans.PropertyDescriptor"> <Property> <PropertyName> <bean:write name="property" property="name"/> </PropertyName> <PropertyDisplayName> <bean:write name="property" property="displayName"/> </PropertyDisplayName> <PropertyShortDescription> <bean:write name="property" property="shortDescription"/> </PropertyShortDescription> <PropertyValue> <app:propertyEditor name="detail" property="property" filter="false"/> </PropertyValue> </Property> </logic:iterate> </PropertiesBlock> </logic:greaterThan> </Page> Index: detail.jsp =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/detail.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** detail.jsp 25 May 2002 20:53:14 -0000 1.2 --- detail.jsp 30 May 2002 22:43:22 -0000 1.3 *************** *** 1,23 **** ! <?xml version="1.0"?> ! <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Laurent Etiemble (Orange) --> ! <jsp:root version="1.2" ! xmlns:jsp="http://java.sun.com/JSP/Page" ! xmlns:app="/WEB-INF/application.tld" ! xmlns:ejtools="/WEB-INF/ejtools.tld" ! xmlns:bean="/WEB-INF/struts-bean.tld" ! xmlns:html="/WEB-INF/struts-html.tld" ! xmlns:logic="/WEB-INF/struts-logic.tld"> <jsp:directive.page language="java" contentType="text/html"/> <app:connect/> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"/> <html:base/> - <title>Detail View</title> </head> <body> - <!-- ======================================== --> - <!-- Header --> - <!-- ======================================== --> <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0"> <tr> --- 1,13 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> <jsp:directive.page language="java" contentType="text/html"/> <app:connect/> <html> <head> + <title>MBean View</title> <link rel="stylesheet" type="text/css" href="style.css"/> <html:base/> </head> <body> <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0"> <tr> *************** *** 37,44 **** <td> <html:link forward="home"> ! <jsp:text>JNDI View</jsp:text> ! </html:link> ! <jsp:text> >> Detail View</jsp:text> ! </td> </tr> </table> --- 27,32 ---- <td> <html:link forward="home"> ! <jsp:text>Agent View</jsp:text> ! </html:link> >> Detail View</td> </tr> </table> *************** *** 46,74 **** </tr> </table> - <!-- ======================================== --> - <!-- Spacer --> - <!-- ======================================== --> <img border="0" src="images/white.png" width="5" height="15"/> - <!-- ======================================== --> - <!-- Context Detail --> - <!-- ======================================== --> <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> <tr bgcolor="#EEEEEE"> <td align="left" valign="top"> ! <table border="0" width="100%" bgcolor="#EEEEEE" cellspacing="0" cellpadding="3"> ! <tr> ! <td align="right" nowrap="true"> ! <b>Name :</b> ! </td> ! <td align="left" width="90%"> ! <bean:write name="detail.info.descriptor" property="displayName"/> ! </td> ! </tr> <tr> ! <td align="right" nowrap="true"> ! <b>Description :</b> ! </td> ! <td align="left" width="90%"> ! <bean:write name="detail.info.descriptor" property="shortDescription"/> </td> </tr> --- 34,62 ---- </tr> </table> <img border="0" src="images/white.png" width="5" height="15"/> <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> <tr bgcolor="#EEEEEE"> <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td> ! <table border="0" width="100%" bgcolor="#EEEEEE" cellspacing="0" cellpadding="3"> ! <tr> ! <td align="right" nowrap="true"> ! <b>Name :</b> ! </td> ! <td align="left" width="90%"> ! <bean:write name="detail.info.descriptor" property="displayName"/> ! </td> ! </tr> ! <tr> ! <td align="right" nowrap="true"> ! <b>Description :</b> ! </td> ! <td align="left" width="90%"> ! <bean:write name="detail.info.descriptor" property="shortDescription"/> ! </td> ! </tr> ! </table> </td> </tr> *************** *** 77,96 **** </tr> </table> ! <!-- ======================================== --> ! <!-- Test for Properties --> ! <!-- ======================================== --> <bean:size name="detail.info.properties" id="propertiesSize"/> <logic:greaterThan name="propertiesSize" value="0"> - <!-- ======================================== --> - <!-- Spacer --> - <!-- ======================================== --> - <img border="0" src="images/white.png" width="5" height="15"/> - <!-- ======================================== --> - <!-- Properties --> - <!-- ======================================== --> <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> - <!-- ======================================== --> - <!-- Properties Headers --> - <!-- ======================================== --> <tr bgcolor="#000090"> <td align="center" valign="top" width="30%"> --- 65,72 ---- </tr> </table> ! <img border="0" src="images/white.png" width="5" height="15"/> <bean:size name="detail.info.properties" id="propertiesSize"/> <logic:greaterThan name="propertiesSize" value="0"> <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> <tr bgcolor="#000090"> <td align="center" valign="top" width="30%"> *************** *** 99,103 **** </font> </td> ! <td align="center" valign="top" width="30%"> <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> <b>Value</b> --- 75,79 ---- </font> </td> ! <td align="center" valign="top" width="70%"> <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> <b>Value</b> *************** *** 105,119 **** </td> </tr> - <!-- ======================================== --> - <!-- Properties List --> - <!-- ======================================== --> <logic:iterate name="detail.info.properties" id="property" type="java.beans.PropertyDescriptor"> <tr bgcolor="#EEEEEE"> ! <td valign="top" align="left"> <jsp:text><a href="javascript:alert('</jsp:text> <bean:write name="property" property="shortDescription"/> <jsp:text>');"></jsp:text> <bean:write name="property" property="displayName"/> ! <jsp:text></a></jsp:text> </td> <td class="attributeValue" valign="top" align="left"> --- 81,92 ---- </td> </tr> <logic:iterate name="detail.info.properties" id="property" type="java.beans.PropertyDescriptor"> <tr bgcolor="#EEEEEE"> ! <td valign="top" align="right"> <jsp:text><a href="javascript:alert('</jsp:text> <bean:write name="property" property="shortDescription"/> <jsp:text>');"></jsp:text> <bean:write name="property" property="displayName"/> ! <jsp:text></a> :</jsp:text> </td> <td class="attributeValue" valign="top" align="left"> Index: index.jsp =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/index.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.jsp 24 May 2002 21:16:36 -0000 1.1 --- index.jsp 30 May 2002 22:43:22 -0000 1.2 *************** *** 1,23 **** ! <?xml version="1.0"?> ! <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Laurent Etiemble (Orange) --> ! <jsp:root version="1.2" ! xmlns:jsp="http://java.sun.com/JSP/Page" ! xmlns:app="/WEB-INF/application.tld" ! xmlns:ejtools="/WEB-INF/ejtools.tld" ! xmlns:bean="/WEB-INF/struts-bean.tld" ! xmlns:html="/WEB-INF/struts-html.tld" ! xmlns:logic="/WEB-INF/struts-logic.tld"> <jsp:directive.page language="java" contentType="text/html"/> <app:connect/> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"/> <html:base/> - <title>JNDI View</title> </head> <body> - <!-- ======================================== --> - <!-- Header --> - <!-- ======================================== --> <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0"> <tr> --- 1,13 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> <jsp:directive.page language="java" contentType="text/html"/> <app:connect/> <html> <head> + <title>JNDI View</title> <link rel="stylesheet" type="text/css" href="style.css"/> <html:base/> </head> <body> <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0"> <tr> *************** *** 41,137 **** </tr> </table> - <!-- ======================================== --> - <!-- Spacer --> - <!-- ======================================== --> <img border="0" src="images/white.png" width="5" height="15"/> - <!-- ======================================== --> - <!-- Agent Detail --> - <!-- ======================================== --> <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> <tr bgcolor="#EEEEEE"> <td align="left" valign="top"> - <!-- ======================================== --> - <!-- Agent Informations --> - <!-- ======================================== --> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td align="left">Namespace <strong>java:</strong>.</td> </tr> </table> </td> </tr> - <!-- ======================================== --> - <!-- JNDI Tree View --> - <!-- ======================================== --> <tr bgcolor="#FFFFFF"> <td align="left" valign="top"> ! <table cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class=".tree-content"> ! <img src="images/icons/J2EEServer16.gif"/>java:</td> </tr> </table> - <ejtools:generateTree name="tree" property="server" id="jnditree"/> - <logic:iterate name="jnditree" id="treenode" type="net.sourceforge.ejtools.servlet.http.jsp.tagext.IndentedObject"> - <table cellspacing="0" cellpadding="0" border="0"> - <tr> - <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeRenderer name="treenode" property="object" renderer="net.sourceforge.ejtools.jndibrowser.web.taglib.TreeRendererImpl"/></td> - <td class=".tree-content"> - <bean:define id="context" name="treenode" property="object" type="net.sourceforge.ejtools.jndibrowser.model.JNDIContext"/> - <html:link page="/detail.do?scope=java" paramId="reference" paramName="context" paramProperty="path"> - <bean:write name="context" property="name"/> - </html:link> - </td> - </tr> - </table> - </logic:iterate> </td> </tr> </table> - <!-- ======================================== --> - <!-- Spacer --> - <!-- ======================================== --> <img border="0" src="images/white.png" width="5" height="15"/> - <!-- ======================================== --> - <!-- Agent Detail --> - <!-- ======================================== --> <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> <tr bgcolor="#EEEEEE"> <td align="left" valign="top"> - <!-- ======================================== --> - <!-- Agent Informations --> - <!-- ======================================== --> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td align="left">Namespace <strong>global</strong>.</td> </tr> </table> </td> </tr> - <!-- ======================================== --> - <!-- JNDI Tree View --> - <!-- ======================================== --> <tr bgcolor="#FFFFFF"> <td align="left" valign="top"> ! <table cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class=".tree-content"> ! <img src="images/icons/J2EEServer16.gif"/>global</td> </tr> </table> - <ejtools:generateTree name="global" property="server" id="jnditree"/> - <logic:iterate name="jnditree" id="treenode" type="net.sourceforge.ejtools.servlet.http.jsp.tagext.IndentedObject"> - <table cellspacing="0" cellpadding="0" border="0"> - <tr> - <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeRenderer name="treenode" property="object" renderer="net.sourceforge.ejtools.jndibrowser.web.taglib.TreeRendererImpl"/></td> - <td class=".tree-content"> - <bean:define id="context" name="treenode" property="object" type="net.sourceforge.ejtools.jndibrowser.model.JNDIContext"/> - <html:link page="/detail.do?scope=global" paramId="reference" paramName="context" paramProperty="path"> - <bean:write name="context" property="name"/> - </html:link> - </td> - </tr> - </table> - </logic:iterate> </td> </tr> --- 31,150 ---- </tr> </table> <img border="0" src="images/white.png" width="5" height="15"/> <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> <tr bgcolor="#EEEEEE"> <td align="left" valign="top"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td> ! <table align="center"> ! <tr> ! <form action="view.do"> ! <td align="center" valign="center"> ! <jsp:text>Search Type : </jsp:text> ! </td> ! <td align="center" valign="center"> ! <select name="search"> ! <option value="S">Shallow</option> ! <option value="D">Deep</option> ! </select> ! </td> ! <td align="center" valign="center"> ! <html:submit> ! <jsp:text>Submit</jsp:text> ! </html:submit> ! </td> ! </form> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! <img border="0" src="images/white.png" width="5" height="15"/> ! <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> ! <tr bgcolor="#EEEEEE"> ! <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> ! <tr> ! <td>Namespace <strong>java:</strong> ! </td> </tr> </table> </td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/development/J2EEServer16.gif"/>java:</td> ! </tr> ! </table> ! <ejtools:generateTree name="tree" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="net.sourceforge.ejtools.servlet.http.jsp.tagext.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeRenderer name="treenode" property="object" renderer="net.sourceforge.ejtools.jndibrowser.web.taglib.TreeRendererImpl"/></td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="net.sourceforge.ejtools.jndibrowser.model.JNDIContext"/> ! <html:link page="/detail.do?scope=java" paramId="reference" paramName="context" paramProperty="path"> ! <bean:write name="context" property="name"/> ! </html:link> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </td> </tr> </table> </td> </tr> </table> <img border="0" src="images/white.png" width="5" height="15"/> <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> <tr bgcolor="#EEEEEE"> <td align="left" valign="top"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td>Namespace <strong>global</strong> ! </td> </tr> </table> </td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top"> ! <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/development/J2EEServer16.gif"/>java:</td> ! </tr> ! </table> ! <ejtools:generateTree name="global" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="net.sourceforge.ejtools.servlet.http.jsp.tagext.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"><ejtools:treeSpacer name="treenode" property="depth"/><ejtools:treeLeaf name="treenode" property="last"/><ejtools:treeRenderer name="treenode" property="object" renderer="net.sourceforge.ejtools.jndibrowser.web.taglib.TreeRendererImpl"/></td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="net.sourceforge.ejtools.jndibrowser.model.JNDIContext"/> ! <html:link page="/detail.do?scope=global" paramId="reference" paramName="context" paramProperty="path"> ! <bean:write name="context" property="name"/> ! </html:link> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </td> </tr> </table> </td> </tr> Index: index.xml =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.xml 24 May 2002 21:16:36 -0000 1.1 --- index.xml 30 May 2002 22:43:22 -0000 1.2 *************** *** 1,9 **** ! <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> ! <Page title="MBean View"> ! <TitleBlock title="MBean View"> <Path> ! <Element link="index.xml">Agent View</Element> ! <Element>MBean View</Element> </Path> </TitleBlock> --- 1,16 ---- ! <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> ! <Page xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> ! <Title> ! <bean:message key="web.index.title"/> ! </Title> ! <TitleBlock> ! <Title> ! <bean:message key="web.index.title"/> ! </Title> <Path> ! <Element> ! <bean:message key="web.index.title"/> ! </Element> </Path> </TitleBlock> *************** *** 13,65 **** <table align="center"> <tr> ! <form action="/search.do"> ! <td align="right"> ! <input type="submit" value="Search" class="button"/> ! </td> ! </form> ! <form action="/admin.do"> ! <td align="left"> ! <input type="submit" value="Admin" class="button"/> ! </td> ! </form> </tr> </table> </HeaderBlock> <HeaderBlock> ! This agent is registered on the domain <strong>defaultDomain ! </strong>.<br/>This page contains <strong>count ! </strong> MBean(s). </HeaderBlock> <ContentBlock> </ContentBlock> </Frame> <Spacer/> ! <ConstructorsBlock> ! <Constructor name="a" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Constructor> ! <Constructor name="b" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Constructor> ! <Constructor name="c" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Constructor> ! </ConstructorsBlock> ! <Spacer/> ! <NotificationsBlock> ! <Notification name="a" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Notification> ! <Notification name="b" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Notification> ! <Notification name="c" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Notification> ! </NotificationsBlock> ! <Spacer/> ! <AttributesBlock> ! <Attribute name="a" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Attribute> ! <Attribute name="b" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Attribute> ! <Attribute name="c" display-name="A" description="Aaaaaa" type="java.lang.String" access="RW">Blah Blah ! </Attribute> ! </AttributesBlock> ! <Spacer/> ! <OperationsBlock/> </Page> --- 20,118 ---- <table align="center"> <tr> ! <html:form action="/view"> ! <td align="center" valign="center"> ! <jsp:text> ! <bean:message key="web.label.searchType"/> ! </jsp:text> ! </td> ! <td align="center" valign="center"> ! <bean:define id="searchTypeConstants" type="net.sourceforge.ejtools.jndibrowser.web.SearchTypeConstants"></bean:define> ! <html:select property="searchType"> ! <html:options collection="searchTypeConstants" labelProperty="labels" property="values"/> ! </html:select> ! </td> ! <td align="center" valign="center"> ! <html:submit> ! <bean:message key="web.button.submit"/> ! </html:submit> ! </td> ! </html:form> </tr> </table> </HeaderBlock> + </Frame> + <Spacer/> + <Frame> <HeaderBlock> ! <bean:message key="web.text.namespace"/> ! <strong> ! <bean:message key="web.text.namespace.java:"/> ! </strong> </HeaderBlock> <ContentBlock> + <table cellspacing="0" cellpadding="0" border="0"> + <tr> + <td class=".tree-content"> + <img src="images/toolbarButtonGraphics/development/J2EEServer16.gif"/> + <bean:message key="web.text.namespace.java:"/> + </td> + </tr> + </table> + <ejtools:generateTree name="tree" property="server" id="jnditree"/> + <logic:iterate name="jnditree" id="treenode" type="net.sourceforge.ejtools.servlet.http.jsp.tagext.IndentedObject"> + <table cellspacing="0" cellpadding="0" border="0"> + <tr> + <td class=".tree-content"> + <ejtools:treeSpacer name="treenode" property="depth"/> + <ejtools:treeLeaf name="treenode" property="last"/> + <ejtools:treeRenderer name="treenode" property="object" renderer="net.sourceforge.ejtools.jndibrowser.web.taglib.TreeRendererImpl"/> + </td> + <td class=".tree-content"> + <bean:define id="context" name="treenode" property="object" type="net.sourceforge.ejtools.jndibrowser.model.JNDIContext"/> + <html:link page="/detail.do?scope=java" paramId="reference" paramName="context" paramProperty="path"> + <bean:write name="context" property="name"/> + </html:link> + </td> + </tr> + </table> + </logic:iterate> </ContentBlock> </Frame> <Spacer/> ! <Frame> ! <HeaderBlock> ! <bean:message key="web.text.namespace"/> ! <strong> ! <bean:message key="web.text.namespace.global"/> ! </strong> ! </HeaderBlock> ! <ContentBlock> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <img src="images/toolbarButtonGraphics/development/J2EEServer16.gif"/> ! <bean:message key="web.text.namespace.global"/> ! </td> ! </tr> ! </table> ! <ejtools:generateTree name="global" property="server" id="jnditree"/> ! <logic:iterate name="jnditree" id="treenode" type="net.sourceforge.ejtools.servlet.http.jsp.tagext.IndentedObject"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td class=".tree-content"> ! <ejtools:treeSpacer name="treenode" property="depth"/> ! <ejtools:treeLeaf name="treenode" property="last"/> ! <ejtools:treeRenderer name="treenode" property="object" renderer="net.sourceforge.ejtools.jndibrowser.web.taglib.TreeRendererImpl"/> ! </td> ! <td class=".tree-content"> ! <bean:define id="context" name="treenode" property="object" type="net.sourceforge.ejtools.jndibrowser.model.JNDIContext"/> ! <html:link page="/detail.do?scope=global" paramId="reference" paramName="context" paramProperty="path"> ! <bean:write name="context" property="name"/> ! </html:link> ! </td> ! </tr> ! </table> ! </logic:iterate> ! </ContentBlock> ! </Frame> </Page> Index: style.xsl =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/webapp/content/style.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** style.xsl 24 May 2002 21:16:36 -0000 1.1 --- style.xsl 30 May 2002 22:43:22 -0000 1.2 *************** *** 1,6 **** <?xml version="1.0"?> ! <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ! <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/> ! <xsl:template match="/Page"> <html> <head> --- 1,15 ---- <?xml version="1.0"?> ! <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:app="/WEB-INF/application.tld" xmlns:ejtools="/WEB-INF/ejtools.tld" xmlns:bean="/WEB-INF/struts-bean.tld" xmlns:html="/WEB-INF/struts-html.tld" xmlns:logic="/WEB-INF/struts-logic.tld"> ! <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> ! <!-- Root match --> ! <xsl:template match="/"> ! <jsp:root version="1.2"> ! <jsp:directive.page language="java" contentType="text/html"/> ! <app:connect/> ! <xsl:apply-templates/> ! </jsp:root> ! </xsl:template> ! <!-- Content match --> ! <xsl:template match="Page"> <html> <head> *************** *** 9,12 **** --- 18,22 ---- </title> <link rel="stylesheet" type="text/css" href="style.css"/> + <html:base/> </head> <body> *************** *** 37,56 **** <tr> <td> ! <xsl:for-each select="Path/Element"> ! <xsl:choose> ! <xsl:when test="./@link != ''"> ! <xsl:element name="a"> ! <xsl:attribute name="href"><xsl:value-of select="./@link"/></xsl:attribute> ! <xsl:value-of select="."/> ! </xsl:element> ! </xsl:when> ! <xsl:otherwise> ! <xsl:value-of select="."/> ! </xsl:otherwise> ! </xsl:choose> ! <xsl:if test="position() != last()"> ! <xsl:text> >> </xsl:text> ! </xsl:if> ! </xsl:for-each> </td> </tr> --- 47,51 ---- <tr> <td> ! <xsl:apply-templates select="Path"/> </td> </tr> *************** *** 60,63 **** --- 55,69 ---- </table> </xsl:template> + <xsl:template match="Path"> + <xsl:for-each select="Element"> + <xsl:apply-templates/> + <xsl:if test="position() != last()"> + <xsl:text> >> </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:template> + <xsl:template match="Element"> + <xsl:copy-of select="."/> + </xsl:template> <xsl:template match="Frame"> <table border="0" cellspacing="1" bgcolor="#CCCCCC" width="100%"> *************** *** 88,92 **** <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td align="left"> <xsl:apply-templates/> </td> --- 94,98 ---- <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr> ! <td> <xsl:apply-templates/> </td> *************** *** 94,116 **** </table> </xsl:template> ! <xsl:template match="AttributesBlock"> <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> <tr bgcolor="#000090"> <td align="center" valign="top" width="30%"> <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Attribute</b> ! </font> ! </td> ! <td align="center" valign="top" width="30%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Type</b> ! </font> ! </td> ! <td align="center" valign="top" width="10%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Access</b> </font> </td> ! <td align="center" valign="top" width="30%"> <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> <b>Value</b> --- 100,112 ---- </table> </xsl:template> ! <xsl:template match="PropertiesBlock"> <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> <tr bgcolor="#000090"> <td align="center" valign="top" width="30%"> <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Property</b> </font> </td> ! <td align="center" valign="top" width="70%"> <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> <b>Value</b> *************** *** 118,319 **** </td> </tr> ! <xsl:for-each select="Attribute"> ! <tr bgcolor="#EEEEEE"> ! <td valign="top" align="right"> ! <xsl:element name="a"> ! <xsl:attribute name="href"><xsl:text>javascript:alert('</xsl:text><xsl:value-of select="./@description"/><xsl:text>')</xsl:text></xsl:attribute> ! <xsl:value-of select="./@display-name"/> ! </xsl:element> ! <xsl:text> :</xsl:text> ! </td> ! <td valign="top" align="right"> ! <xsl:value-of select="./@type"/> ! </td> ! <td valign="top" align="center"> ! <xsl:value-of select="./@access"/> ! </td> ! <td class="attributeValue" valign="top" align="left">false</td> ! </tr> ! </xsl:for-each> </table> </xsl:template> ! <xsl:template match="ConstructorsBlock"> ! <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> ! <tr bgcolor="#000090"> ! <td align="center" valign="top" width="30%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Constructor</b> ! </font> ! </td> ! <td align="center" valign="top" width="70%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Parameters</b> ! </font> ! </td> ! </tr> ! <xsl:for-each select="Constructor"> ! <tr bgcolor="#EEEEEE"> ! <td valign="top" align="right"> ! <xsl:element name="a"> ! <xsl:attribute name="href"><xsl:text>javascript:alert('</xsl:text><xsl:value-of select="./@description"/><xsl:text>')</xsl:text></xsl:attribute> ! <xsl:value-of select="./@display-name"/> ! </xsl:element> ! <xsl:text> :</xsl:text> ! </td> ! <td class="attributeValue" valign="top" align="left">false</td> ! </tr> ! </xsl:for-each> ! </table> </xsl:template> ! <xsl:template match="NotificationsBlock"> ! <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> ! <tr bgcolor="#000090"> ! <td align="center" valign="top" width="30%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Notification</b> ! </font> ! </td> ! <td align="center" valign="top" width="70%"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Value</b> ! </font> ! </td> ! </tr> ! <xsl:for-each select="Notification"> ! <tr bgcolor="#EEEEEE"> ! <td valign="top" align="right"> ! <xsl:element name="a"> ! <xsl:attribute name="href"><xsl:text>javascript:alert('</xsl:text><xsl:value-of select="./@description"/><xsl:text>')</xsl:text></xsl:attribute> ! <xsl:value-of select="./@display-name"/> ! </xsl:element> ! <xsl:text> :</xsl:text> ! </td> ! <td class="attributeValue" valign="top" align="left">false</td> ! </tr> ! </xsl:for-each> ! </table> </xsl:template> ! <xsl:template match="OperationsBlock"> ! <table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC"> ! <tr bgcolor="#000090"> ! <td align="center" valign="top" colspan="2"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Operation</b> ! </font> ! </td> ! <td align="center" valign="top"> ! <font face="verdana,arial,sans-serif" color="#ffffff" size="-1"> ! <b>Arguments</b> ! </font> ! </td> ! </tr> ! <xsl:for-each select="Operation"> ! <tr bgcolor="#EEEEEE"> ! <td valign="top" align="right"> ! <xsl:element name="a"> ! <xsl:attribute name="href"><xsl:text>javascript:alert('</xsl:text><xsl:value-of select="./@description"/><xsl:text>')</xsl:text></xsl:attribute> ! <xsl:value-of select="./@display-name"/> ! </xsl:element> ! <xsl:text> :</xsl:text> ! </td> ! <td valign="top" class="attributeValue" align="center"> ! <font size="-1"> ! <input type="submit" value="Invoke" class="button"/> ! </font> ! </td> ! <td valign="top" class="attributeValue" align="left"/> ! </tr> ! </xsl:for-each> ! </table> </xsl:template> ! <xsl:template match="*|@*"> ! <xsl:copy-of select="."/> </xsl:template> ! <xsl:template match="Tree"> ! <xsl:variable name="sessionid" select="./@id"/> ! <xsl:for-each select="tree-node"> ! <xsl:call-template name="node"> ! <xsl:with-param name="sessionid" select="$sessionid"/> ! </xsl:call-template> ! </xsl:for-each> </xsl:template> ! <xsl:template name="node"> ! <xsl:param name="sessionid"/> ! <xsl:param name="parent_follow"/> ! <TABLE border="0" cellspacing="0" cellpadding="0"> ! <TR> ! <TD valign="middle"> ! <xsl:call-template name="spacer"> ! <xsl:with-param name="indent" select="$parent_follow"/> ! </xsl:call-template> ! <xsl:choose> ! <xsl:when test="count(ancestor::tree-node) = 0"> ! <img src="images/tree/empty.gif" width="16" height="16"/> ! </xsl:when> ! <xsl:when test="count(following-sibling::tree-node) > 0"> ! <img src="images/tree/joinbottom.gif" width="16" height="16"/> ! </xsl:when> ! <xsl:otherwise> ! <img src="images/tree/join.gif" width="16" height="16"/> ! </xsl:otherwise> ! </xsl:choose> ! <xsl:variable name="small-icon" select="./@small-icon"/> ! <xsl:element name="img"> ! <xsl:attribute name="src"><xsl:text>images/icons/</xsl:text><xsl:value-of select="$small-icon"/></xsl:attribute> ! </xsl:element> ! <img src="images/tree/empty.gif" width="4" height="16"/> ! </TD> ! <TD valign="middle"> ! <xsl:variable name="item-name" select="./text"/> ! <xsl:element name="a"> ! <xsl:attribute name="href"><xsl:text>detail.do;jsessionid=</xsl:text><xsl:value-of select="$sessionid"/><xsl:text>?ref=</xsl:text><xsl:value-of select="./@objref"/></xsl:attribute> ! <font size="-1"> ! <xsl:choose> ! <xsl:when test="contains($item-name, ':')"> ! <xsl:value-of select="substring-after($item-name, ':')"/> ! </xsl:when> ! <xsl:otherwise> ! <xsl:value-of select="$item-name"/> ! </xsl:otherwise> ! </xsl:choose> ! </font> ! </xsl:element> ! </TD> ! </TR> ! </TABLE> ! <xsl:choose> ! <xsl:when test="count(following-sibling::tree-node) > 0"> ! <xsl:for-each select="tree-node"> ! <xsl:call-template name="node"> ! <xsl:with-param name="sessionid" select="$sessionid"/> ! <xsl:with-param name="parent_follow" select="concat($parent_follow, '1')"/> ! </xsl:call-template> ! </xsl:for-each> ! </xsl:when> ! <xsl:otherwise> ! <xsl:for-each select="tree-node"> ! <xsl:call-template name="node"> ! <xsl:with-param name="sessionid" select="$sessionid"/> ! <xsl:with-param name="parent_follow" select="concat($parent_follow, '0')"/> ! </xsl:call-template> ! </xsl:for-each> ! </xsl:otherwise> ! </xsl:choose> </xsl:template> ! <xsl:template name="spacer"> ! <xsl:param name="indent" select="''"/> ! <xsl:if test="string-length($indent) > 0"> ! <xsl:choose> ! <xsl:when test="substring($indent, 1, 1) = '1'"> ! <img src="images/tree/line.gif" width="16" height="16"/> ! </xsl:when> ! <xsl:otherwise> ! <img src="images/tree/empty.gif" width="16" height="16"/> ! </xsl:otherwise> ! </xsl:choose> ! <xsl:call-template name="spacer"> ! <xsl:with-param name="indent" select="substring($indent, 2)"/> ! </xsl:call-template> ! </xsl:if> </xsl:template> </xsl:stylesheet> --- 114,192 ---- </td> </tr> ! <xsl:apply-templates/> </table> </xsl:template> ! <xsl:template match="Property"> ! <tr bgcolor="#EEEEEE"> ! <td valign="top" align="right"> ! <jsp:text><a href="javascript:alert('</jsp:text> ! <xsl:apply-templates select="PropertyShortDescription"/> ! <jsp:text>');"></jsp:text> ! <xsl:apply-templates select="PropertyDisplayName"/> ! <jsp:text></a> :</jsp:text> ! </td> ! <td class="attributeValue" valign="top" align="left"> ! <xsl:apply-templates select="PropertyValue"/> ! </td> ! </tr> </xsl:template> ! <xsl:template match="PropertyName"> ! <xsl:apply-templates/> </xsl:template> ! <xsl:template match="PropertyDisplayName"> ! <xsl:apply-templates/> </xsl:template> ! <xsl:template match="PropertyShortDescription"> ! <xsl:apply-templates/> </xsl:template> ! <xsl:template match="PropertyValue"> ! <xsl:apply-templates/> </xsl:template> ! <!-- Taglib namespace match --> ! <xsl:template match="app:*"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> </xsl:template> ! <xsl:template match="bean:*"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="ejtools:*"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="jsp:*"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="html:*"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="html:link"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <jsp:text><xsl:value-of select="."></xsl:value-of></jsp:text> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="logic:*"> ! <xsl:copy> ! <xsl:apply-templates select="@*"/> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <!-- Generic match --> ! <xsl:template match="*|@*"> ! <xsl:copy-of select="."/> </xsl:template> </xsl:stylesheet> |