?? login.jsp
字號:
<html>
<head>
<title>Welcome!</title>
</head>
<meta http-equiv="pragma" content="no-cache">
<%@ page import="javax.ejb.*, javax.naming.*, javax.rmi.PortableRemoteObject, java.rmi.RemoteException" %>
<%@ page import="com.sun.sjc.idtv.vod.server.subscriber.*" %>
<%@ page import="com.sun.sjc.idtv.vod.server.http.*" %>
<%@ page import="com.sun.sjc.idtv.vod.shared.data.*" %>
<%!
SubscriberManagementSystem sms;
public void jspInit() {
sms = (SubscriberManagementSystem)getServletContext().getAttribute("sms");
if (sms == null) {
try {
InitialContext ic = new InitialContext();
Object objRef = ic.lookup("java:comp/env/ejb/SubscriberManagementSystem");
sms = (SubscriberManagementSystem) ((SubscriberManagementSystemHome)PortableRemoteObject.narrow(objRef, SubscriberManagementSystemHome.class)).create();
getServletContext().setAttribute("sms", sms);
} catch (Exception ex) {
System.out.println("Unable to create: "+ "java:comp/env/ejb/SubscriberManagementSystem. "+ ex.getMessage());
}
}
}
public void jspDestroy() {
sms = null;
}
%>
<body background="images/bg800.jpg">
<!--<center><table CELLSPACING=0 CELLPADDING=0 WIDTH="100%" BGCOLOR="#88888" >
<tr>
<td><img SRC="images/leftlogo.png" height=32 width=71></td>
<td>
<center><img SRC="images/homemoviesbar.png" BORDER=0 height=32 width=260></center>
</td>
<td>
<div align=right><img SRC="images/smallsunlogo.png" BORDER=0 height=32 width=71></div>
</td>
</tr>
</table></center> -->
<br>
<%--
<% if ((session.getAttribute("error")).equals("")) { %>
<B><FONT COLOR="#555555">Invalid password</FONT></B><BR>
<% } %>
--%>
<%
Subscriber[] subs = sms.getSubscriberList("127.0.0.1");
%>
<BR>
<CENTER>
<b><font SIZE=10 color="#000000">Please select a user:</b>
<BR>
<% for (int i=0; i<subs.length; i++) { %>
<CENTER><FONT SIZE=10><A
HREF="password.jsp?username=<%=subs[i].firstname %>"><%=
subs[i].firstname %></A></FONT></CENTER><BR>
<% } %>
</CENTER>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -