[sword-cvs] swordweb/examples booklist.jsp,NONE,1.1 search.jsp,1.1,1.2
sword@www.crosswire.org
sword@www.crosswire.org
Thu, 8 Apr 2004 17:48:48 -0700
Update of /cvs/core/swordweb/examples
In directory www:/tmp/cvs-serv8242
Modified Files:
search.jsp
Added Files:
booklist.jsp
Log Message:
--- NEW FILE: booklist.jsp ---
<%@ page
language="java"
contentType="text/html;charset=utf-8"
%>
<%@ page import="org.crosswire.sword.orb.*" %>
<%
SWMgr mgr = SwordOrb.getSWMgrInstance(session);
%>
<html>
<body>
<h1>SWORDWeb Book List Example</h1>
<table border="1">
<tr><th>Name</th><th>Category</th><th>Description</th></tr>
<%
ModInfo[] modInfo = mgr.getModInfoList();
for (int i = 0; i < modInfo.length; i++) {
SWModule book = mgr.getModuleByName(modInfo[i].name);
%>
<tr><td><%= modInfo[i].name %></td><td><%= modInfo[i].category %></td><td><%= book.getDescription() %></td></tr>
<%
}
%>
</table>
</body>
</html>
Index: search.jsp
===================================================================
RCS file: /cvs/core/swordweb/examples/search.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- search.jsp 9 Apr 2004 00:35:30 -0000 1.1
+++ search.jsp 9 Apr 2004 00:48:46 -0000 1.2
@@ -28,7 +28,7 @@
<p> There are <%= results.length %> results searching for "<%= searchTerm %>" in <%= book.getName() %></p>
<table border="1">
-<tr><td>Reference</td><td>Text</td></tr>
+<tr><th>Reference</th><th>Text</th></tr>
<%
for (int i = 0; i < results.length && i < 100; i++) {