manveen 02/05/05 13:20:33 Added: webapps/admin/resources dataSources.jspf listDataSources.jsp listDataSources.jspf Log: Jsps to list data source entries Revision Changes Path 1.1 jakarta-tomcat-4.0/webapps/admin/resources/dataSources.jspf Index: dataSources.jspf =================================================================== <%-- DataSources 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.datasrc.jndi"/> </div></td> <td><div align="left" class="table-header-text"> <%-- FIX ME - this should be JDBC URL <bean:message key="resources.datasrc.url"/> --%> <bean:message key="users.list.description"/> </div></td> </tr> <logic:iterate name="dataSourcesForm" property="dataSources" id="dataSource" type="java.lang.String"> <tr class="line-row"> <logic:present name="checkboxes"> <td><div align="center" class="table-normal-text"> <input type="checkbox" name="dataSources" value="<%= dataSource %>"> </td> </logic:present> <td><div align="left" class="table-normal-text"> <html:link page='<%= "/resources/setUpDataSource.do?objectName=" + URLEncoder.encode(dataSource) %>'> <controls:attribute name="dataSource" attribute="name"/> </html:link> </div></td> <td><div align="left" class="table-normal-text"> <controls:attribute name="dataSource" attribute="description"/> </div></td> </tr> </logic:iterate> </table> </td></tr></table> 1.1 jakarta-tomcat-4.0/webapps/admin/resources/listDataSources.jsp Index: listDataSources.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"> <!--Form --> <html:errors/> <html:form action="/resources/listDataSources"> <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.datasrc"/> </div> </td> <td width="19%"> <div align="right"> <%@ include file="listDataSources.jspf" %> </div> </td> </tr> </table> </html:form> <br> <%@ include file="dataSources.jspf" %> <br> </body> </html:html> 1.1 jakarta-tomcat-4.0/webapps/admin/resources/listDataSources.jspf Index: listDataSources.jspf =================================================================== <controls:actions> <controls:action selected="true"> ----<bean:message key="actions.available.actions"/>---- </controls:action> <controls:action disabled="true"> --------------------------------- </controls:action> <%-- FIX ME <controls:action url="/resources/setDataSource.do"> <bean:message key="resources.actions.datasrc.create"/> </controls:action> <controls:action url='<%= "/resources/listDataSources.do?forward=" + URLEncoder.encode("DataSources Delete List") %>'> <bean:message key="resources.actions.datasrc.delete"/> </controls:action> --%> </controls:actions>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>