⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commandlinkresult.jsp

📁 IBM RSA下的JSF开发示例
💻 JSP
字号:

	<%-- tpl:insert page="/template/jsfTemplate.jtpl" --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="../theme/Master.css" rel="stylesheet" type="text/css">
<LINK href="../theme/new.css" rel="stylesheet">
<LINK rel="stylesheet" type="text/css" href="../theme/stylesheet.css" title="Style">
<%-- tpl:put name="headarea" --%>
			<title>commandLinkResult.jsp</title>
		<%-- /tpl:put --%>
<LINK rel="stylesheet" type="text/css" href="/JSFandSDO/theme/stylesheet.css" title="Style">
</HEAD>

<f:view>
	<BODY>
		<TABLE class="title" cellpadding="0">
			<TBODY>
				<TR>
					<TD class="noBorder" background="../images/gradient.jpg"
						align="CENTER"><IMG border="0" src="../images/title.jpg"></TD>
				</TR>
				<TR>
					<TD class="noBorder" align="RIGHT"><A href="/JSFandSDO">Return to Main Menu</A></TD>
				</TR>
			</TBODY>
		</TABLE>
		<%-- tpl:put name="bodyarea" --%>

	<hx:scriptCollector id="scriptCollector1">
		<h:form styleClass="form" id="form1">
			<H2>Passing Data using Command-Hyperlinks and Output-Links</H2>
			<H3>Selected Product Information</H3>
			<TABLE cellpadding="3">
				<TBODY>
					<TR>
						<TD class="tdColor25">Product ID</TD>
						<TD class="td75"><h:outputText id="text1" value="#{pc_CommandLinkResult.productDetails.PRODUCT_ID}" styleClass="outputText">
							<f:convertNumber />
						</h:outputText></TD>
					</TR>
					<TR>
						<TD class="tdColor25">Product Type</TD>
						<TD class="td75"><h:outputText id="text2" value="#{pc_CommandLinkResult.productDetails.PRODUCT_TYPE}" styleClass="outputText">
						</h:outputText></TD>
					</TR>
					<TR>
						<TD class="tdColor25">Product Name</TD>
						<TD class="td75"><h:outputText id="text3" value="#{pc_CommandLinkResult.productDetails.PRODUCT_NAME}" styleClass="outputText">
						</h:outputText></TD>
					</TR>
					<TR>
						<TD class="tdColor25">Description</TD>
						<TD class="td75"><h:outputText id="text4" value="#{pc_CommandLinkResult.productDetails.PRODUCT_DESCRIPTION}" styleClass="outputText">
						</h:outputText></TD>
					</TR>
					<TR>
						<TD class="tdColor25">Price</TD>
						<TD class="td75"><h:outputText id="text5" value="#{pc_CommandLinkResult.productDetails.PRODUCT_PRICE}" styleClass="outputText">
							<f:convertNumber type="currency" />
						</h:outputText></TD>
					</TR>
				</TBODY>
			</TABLE><h:commandLink styleClass="commandLink" id="link3" action="#{pc_CommandLinkResult.doLink3Action}">
				<h:outputText id="text8" styleClass="outputText" value="Return to Previous Page"></h:outputText>
			</h:commandLink>
			<BR>
			<BR>If you used an output-link to reach this page, notice the parameter was passed in the URL. If a command-hyperlink was used, the parameter was passed as a Request Scope Parameter and is not visible in the URL.<BR>
			<BR>The passed parameter is used by the SDO object <I>productDetails</I> to connect to a database   and display the relational record  above. The statement &quot;#{param.ID}&quot; is  used to access the  parameter in the SDO object. Right-click on the <I>productDetails</I> SDO object in the Page Data view, select Configure. Go through a few steps and click the &quot;Filter results&quot; link at the last step to view the parameter in use.<BR>			
		</h:form>
	</hx:scriptCollector>

		<%-- /tpl:put --%>
		<TABLE class="title" cellpadding="0">
			<TBODY>
				<TR>
					<TD class="noBorder" align="RIGHT"><A href="/JSFandSDO">Return to Main Menu</A></TD>
				</TR>
			</TBODY>
		</TABLE>
	</BODY>
</f:view>

</HTML><%-- /tpl:insert --%>

<%-- jsf:pagecode language="java" location="/src/pagecode/passData/CommandLinkResult.java" --%><%-- /jsf:pagecode --%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -