📄 banddisplay.jsp
字号:
<%@page language="java" %>
<%@taglib uri="ejbtags.tld" prefix="ejb" %>
<%@include file="style.html" %>
<%@page import="java.util.*"%>
<%@page import="jcawebapp.*"%>
<%@page import="javax.naming.*"%>
<%@page import="java.io.*"%>
<%@page import="javax.servlet.*"%>
<%@page import="javax.servlet.http.*"%>
<%@ include file="style.html" %>
<ejb:useHome id="home" type="jcawebapp.ConnectJCAHome" location="ConnectJCA" />
<ejb:useBean id="hello" type="jcawebapp.ConnectJCA" scope="page" ><ejb:createBean instance="<%=home.create()%>" /> </ejb:useBean>
<%
String band = request.getParameter("BAND");
String founder = request.getParameter("FOUNDER");
Vector data = hello.getJCA(band,founder);%>
<html>
<head>
<title>Display Airlines</title>
</head>
<BODY class=bg MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0">
<!-- main table ########################################################################### -->
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH=100% HEIGHT="136">
<TR>
<td class=bg height="100" align="right" valign="top" colspan=2>
</td>
</TR>
<!-- white space & error space ############################################################ -->
<tr>
<td colspan="2"><a href="bandInput.jsp">back</a>
<!-- content table ######################################################################## -->
<table class=tableBorder border="0" cellspacing="0" cellpadding="0" width="100%">
<TR class="bgOuter">
<TD class=title2 align="left" width="33%">
Display all Bands
</TD>
</tr>
<tr class="bgOuter">
<td colspan="2">
<!-- inner table ########################################################################## -->
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<TR class=bgInner>
<TD class=title1 width="33%">
Band
</TD>
<TD class=title1 width="33%">
Band Founder
</TD>
<TD class=title1 width="33%">
Founding Date
</TD>
</TR>
<!--put data stuff here -->
<%
int e = data.size();
for(int i=0;i<e;i++){
String[] temp = (String[])data.get(i);
%>
<tr>
<%
for(int cols =0;cols<temp.length;cols++){
%>
<td><%=temp[cols]%></td>
<%
}
%>
</tr>
<%
}
%>
<!-- end of inner table ################################################################### -->
</table>
</td>
</tr>
<!-- end of content table ################################################################# -->
</table>
<br>
</td>
</tr>
<!-- end of main table #################################################################### -->
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -