viewvideo.jsp
来自「相当板扎,采用贝叶斯公式的垃圾邮件过滤程序」· JSP 代码 · 共 134 行
JSP
134 行
<%--
* @author Shefali Bansal
* @version 1.0
*
* Name of the Application : ViewVideo.jsp
* Development Environment : Oracle JDeveloper 10g
* Creation/Modification History :
*
* Shefali Bansal 02-Jan-2004 Created
*
* Overview of Application :
* This JSP displays the video content for a web event.
* This JSP uses media retrieval tag from Multimedia Tag Library
* to retrieve media data from the database and deliver it to the browser.
* The 'embedVideo' media retrieval tag is used here.
* Here the SQL tag library is used to access the oracle database.
--%>
<%@ page language="java" %>
<%@ page errorPage="Exception.jsp" %>
<%-- Specify the prefix and uri attributes. The value of the uri attribute indicates
the location of the tag library descriptor (TLD) file for the tag library.
The prefix attribute (ord) specifies the XML namespace identifier,
which should be inserted before each occurrence of the library抯 tags in the JSP page.--%>
<%@ taglib prefix="ord" uri="intermedia-taglib.tld" %>
<%@ taglib prefix="sql" uri="sqltaglib.tld" %>
<HTML>
<% // Get the values of the parameters passed to this JSP
String event_id = request.getParameter("Event_Id");
String short_desc = request.getParameter("Short_Desc");
String event_desc = request.getParameter("Event_Desc");
%>
<HEAD>
<TITLE>JSP Multimedia Tag Application: JSP Multimedia Tag Application:View Video of a particular Event</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<link rel="stylesheet" href="stylesheets/styles.css" type="text/css">
</HEAD>
<BODY text=#000000>
<!-- Main table -->
<TABLE border=0 cellPadding=0 cellSpacing=0 height=58 width=100%>
<TR>
<TD valign="top" width="100%">
<!-- Include the static 'Header.jsp' file -->
<%@ include file="Header.jsp" %>
</TD>
</TR>
<TR>
<TD width="100%">
<table WIDTH ="100%" cellspacing=0 cellpadding=0 height="100%"
bgcolor="#FFFFFF">
<tr>
<TD height="100%">
<!-- 5th table starts here working area and heading -->
<TABLE border=0 cellPadding=1 cellSpacing=0 width="100%">
<!-- Heading of the page goes here -->
<TR >
<TD valign="middle" height="19" noWrap><b><font color="#990000"> Hi!
You logged in as <%=(String)session.getAttribute("UserType")%>.</font></b></TD>
</TR>
<TR>
<TD valign="middle" noWrap height="16"> </TD>
</TR>
<TR>
<TD valign="middle" height="16"><font color="#333366"><b><font size="4" face="Verdana, Arial, Helvetica, sans-serif">
<%=short_desc%></font></b></font></TD>
</TR>
<TR>
<TD valign="middle" height="16" width=50%><i><font size="3"><%=event_desc%></font></i></TD>
</TR>
<TR>
<TD valign="middle" noWrap height="16"><font color="#000000"><b></b></font></TD>
</TR>
<TR>
<TD valign="middle" noWrap height="16">
<table width="100%" border="1" cellpadding="5" cellspacing="1">
<tr bgcolor="#FFFFCC">
<td width="100%" valign="top" class="boldbodycopy" height="23" ><font color="#000000"><b>Enjoy
the Video (Real Media)</b></font></td>
</tr>
<tr bgcolor=#FFFFEA>
<%-- Generate the HTML <EMBED> and <OBJECT> tags where the video data from OTN_WEBINAR_EVENTS
table is delivered directly from the database to a browser plug-in.
This line of code shows the Multimedia JSP tag embedVideo.--%>
<td width="100%" align="center" valign="top">
<ord:embedVideo dataSourceName="jdbc/OracleDS"
table = "OTN_WEBINAR_EVENTS"
column = "video"
key = "<%=event_id%>"
keyColumn = "Event_Id"
alt = "OTN greetings"
helperApp = "realPlayer"
height = "200" width = "200"
showControls = "true"
autoStart = "false"
loop = "true"
standby = "Loading media player components ..." />
</td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD height="16"> </TD>
</TR>
<TR>
<TD height="16" align="center"><a href="User.jsp"><img src="images/viewother.gif" width="148" height="22" border="0"></a> <a href="javascript:history.go(-1)"><img src="images/backbutton.gif" width="55" height="23" border="0"></a></TD>
</TR>
</TABLE>
</TD>
</tr>
</table>
</td>
</TR>
<TR>
<%@ include file="Footer.jsp" %>
</TR>
</TABLE>
<!-- Main table ends here-->
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?