amyroh 2002/06/13 11:34:45 Modified: webapps/admin/resources envEntries.jspf Added: webapps/admin/resources deleteResourceLinks.jsp listResourceLinks.jsp listResourceLinks.jspf resourceLink.jsp resourceLinks.jspf Log: Add incomplete Context Resource Link support in admin tool. Revision Changes Path 1.5 +1 -1 jakarta-tomcat-4.0/webapps/admin/resources/envEntries.jspf Index: envEntries.jspf =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/resources/envEntries.jspf,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- envEntries.jspf 13 Jun 2002 18:19:48 -0000 1.4 +++ envEntries.jspf 13 Jun 2002 18:34:45 -0000 1.5 @@ -33,7 +33,7 @@ <td><div align="left" class="table-normal-text"> <html:link page='<%= "/resources/setUpEnvEntry.do?objectName=" + URLEncoder.encode(envEntry) + "&parent=" + - URLEncoder.encode(parentName) %>'> + URLEncoder.encode(parentInfo) %>'> <controls:attribute name="envEntry" attribute="name"/> </html:link> </div></td> 1.1 jakarta-tomcat-4.0/webapps/admin/resources/deleteResourceLinks.jsp Index: deleteResourceLinks.jsp =================================================================== <!-- Standard Struts Entries --> <%@ page language="java" import="java.net.URLEncoder" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/controls.tld" prefix="controls" %> <html:html locale="true"> <%@ include file="../users/header.jsp" %> <!-- Body --> <body bgcolor="white" background="../images/PaperTexture.gif"> <!--Form --> <html:errors/> <html:form action="/resources/listResourceLinks"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="7171A5"> <td width="81%"> <div class="page-title-text" align="left"> <bean:message key="resources.actions.resourcelk.delete"/> </div> </td> <td width="19%"> <div align="right"> <%@ include file="listResourceLinks.jspf" %> </div> </td> </tr> </table> </html:form> <br> <bean:define id="checkboxes" scope="page" value="true"/> <html:form action="/resources/deleteResourceLinks"> <%@ include file="../buttons.jsp" %> <br> <%@ include file="resourceLinks.jspf" %> <%@ include file="../buttons.jsp" %> </html:form> <br> <%@ include file="../users/footer.jsp" %> </body> </html:html> 1.1 jakarta-tomcat-4.0/webapps/admin/resources/listResourceLinks.jsp Index: listResourceLinks.jsp =================================================================== <!-- Standard Struts Entries --> <%@ page language="java" import="java.net.URLEncoder" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/controls.tld" prefix="controls" %> <html:html locale="true"> <%@ include file="../users/header.jsp" %> <!-- Body --> <body bgcolor="white" background="../images/PaperTexture.gif"> <!--Form --> <html:errors/> <html:form action="/resources/listResourceLinks"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="7171A5"> <td width="81%"> <div class="page-title-text" align="left"> <bean:message key="resources.actions.resourcelk"/> </div> </td> <td width="19%"> <div align="right"> <%@ include file="listResourceLinks.jspf" %> </div> </td> </tr> </table> </html:form> <br> <%@ include file="resourceLinks.jspf" %> <br> </body> </html:html> 1.1 jakarta-tomcat-4.0/webapps/admin/resources/listResourceLinks.jspf Index: listResourceLinks.jspf =================================================================== <controls:actions> <controls:action selected="true"> ----<bean:message key="actions.available.actions"/>---- </controls:action> <controls:action disabled="true"> --------------------------------- </controls:action> <controls:action url="/resources/setUpResourceLink.do"> <bean:message key="resources.actions.resourcelk.create"/> </controls:action> <controls:action url='<%= "/resources/listResourceLinks.do?forward=" + URLEncoder.encode("ResourceLinks Delete List") %>'> <bean:message key="resources.actions.resourcelk.delete"/> </controls:action> </controls:actions> 1.1 jakarta-tomcat-4.0/webapps/admin/resources/resourceLink.jsp Index: resourceLink.jsp =================================================================== <!-- Standard Struts Entries --> <%@ page language="java" import="java.net.URLEncoder" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/controls.tld" prefix="controls" %> <html:html locale="true"> <%@ include file="../users/header.jsp" %> <!-- Body --> <body bgcolor="white" background="../images/PaperTexture.gif"> <!--Form --> <html:errors/> <html:form method="POST" action="/resources/saveResourceLink"> <html:hidden property="parentObjectName"/> <html:hidden property="objectName"/> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="page-title-row"> <td align="left" nowrap> <div class="page-title-text"> <bean:write name="resourceLinkForm" property="nodeLabel"/> </div> </td> <td align="right" nowrap> <div class="page-title-text"> <controls:actions> <controls:action selected="true"> ----<bean:message key="actions.available.actions"/>---- </controls:action> <controls:action> --------------------------------- </controls:action> <controls:action url="/resources/setUpResourceLink.do"> <bean:message key="resources.actions.resourcelk.create"/> </controls:action> <controls:action url='<%= "/resources/listResourceLinks.do?forward=" + URLEncoder.encode("ResourceLinks Delete List") %>'> <bean:message key="resources.actions.resourcelk.delete"/> </controls:action> </controls:actions> </div> </td> </tr> </table> <%@ include file="../buttons.jsp" %> <br> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr><td><div class="table-title-text"> <bean:message key="resources.treeBuilder.resourcelinks"/> </div></td></tr> </table> <table class="back-table" border="0" cellspacing="0" cellpadding="1" width="100%"> <tr> <td> <controls:table tableStyle="front-table" lineStyle="line-row"> <controls:row header="true" labelStyle="table-header-text" dataStyle="table-header-text"> <controls:label><bean:message key="service.property"/></controls:label> <controls:data><bean:message key="service.value"/></controls:data> </controls:row> <controls:row labelStyle="table-label-text" dataStyle="table-normal-text"> <controls:label> <bean:message key="resources.resourcelk.name"/>: </controls:label> <controls:data> <logic:present name="resourceLinkForm" property="objectName"> <bean:write name="resourceLinkForm" property="name"/> <html:hidden property="name"/> </logic:present> <logic:notPresent name="resourceLinkForm" property="objectName"> <html:text property="name" size="35" maxlength="56"/> </logic:notPresent> </controls:data> </controls:row> <controls:row labelStyle="table-label-text" dataStyle="table-normal-text"> <controls:label> <bean:message key="resources.resourcelk.global"/>: </controls:label> <controls:data> <html:text property="global" size="35" maxlength="56"/> </controls:data> </controls:row> <controls:row labelStyle="table-label-text" dataStyle="table-normal-text"> <controls:label> <bean:message key="resources.resourcelk.type"/>: </controls:label> <controls:data> <html:text property="type" size="45" maxlength="256"/> </controls:data> </controls:row> </controls:table> </td> </tr> </table> <%@ include file="../buttons.jsp" %> </html:form> <!-- Standard Footer --> <%@ include file="../users/footer.jsp" %> </body> </html:html> 1.1 jakarta-tomcat-4.0/webapps/admin/resources/resourceLinks.jspf Index: resourceLinks.jspf =================================================================== <%-- ResourceLinks List --%> <table class="back-table" border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td> <table class="front-table" border="1" cellspacing="0" cellpadding="0" width="100%"> <tr class="header-row"> <logic:present name="checkboxes"> <td width="5%"><div align="left" class="table-header-text"> </td> </logic:present> <td width="20%"><div align="left" class="table-header-text"> <bean:message key="resources.resourcelk.name"/> </div></td> <td><div align="left" class="table-header-text"> <bean:message key="resources.resourcelk.global"/> </div></td> </tr> <logic:iterate name="resourceLinksForm" property="resourceLinks" id="resourceLink" type="java.lang.String"> <tr class="line-row"> <logic:present name="checkboxes"> <td><div align="center" class="table-normal-text"> <input type="checkbox" name="resourceLinks" value="<%= resourceLink %>"> </td> </logic:present> <td><div align="left" class="table-normal-text"> <html:link page='<%= "/resources/setUpResourceLink.do?objectName=" + URLEncoder.encode(resourceLink) %>'> <controls:attribute name="resourceLink" attribute="name"/> </html:link> </div></td> <td><div align="left" class="table-normal-text"> <controls:attribute name="resourceLink" attribute="global"/> </div></td> </tr> </logic:iterate> </table> </td></tr></table>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>