In this step, you will open the new myp13n.jsp, view the code that was automatically generated for the modern content selector, and add the classic content selector to the JSP.
<%--Generated by WebLogic Workshop--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@taglib uri="http://www.bea.com/servers/portal/tags/personalization" prefix="pz"%>
<%@taglib prefix="utility" uri="http://www.bea.com/servers/p13n/tags/utility"%>
<%@taglib prefix="cm" uri="content.tld"%>
<%-- Retrieve the content and display each node name in a list. --%> <pz:contentSelector rule="modern" id="nodes"/> <utility:notNull item="<%=nodes%>"> <ul> <utility:forEachInArray array="<%=nodes%>" id="node" type="com.bea.content.Node"> <li><cm:getProperty id="node" name="cm_nodeName" conversionType="html"/></li> </utility:forEachInArray> </ul> </utility:notNull>Notice that several JSP tags have been generated, along with their necessary tag library include statements at the top.
<%--Generated by WebLogic Workshop--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@taglib uri="http://www.bea.com/servers/portal/tags/personalization" prefix="pz"%>
<%@taglib prefix="utility" uri="http://www.bea.com/servers/p13n/tags/utility"%>
<%@taglib prefix="cm" uri="content.tld"%>
<%-- Retrieve the content and display each node name in a list. --%> <pz:contentSelector rule="modern" id="nodes"/> <utility:notNull item="<%=nodes%>"> <ul> <utility:forEachInArray array="<%=nodes%>" id="node" type="com.bea.content.Node"> <img src="<%=request.getContextPath() + "/ShowBinary" + node.getPath()%>"> </utility:forEachInArray> </ul> </utility:notNull> <%-- Retrieve the content and display each node name in a list. --%> <pz:contentSelector rule="classic" id="nodes"/> <utility:notNull item="<%=nodes%>"> <ul> <utility:forEachInArray array="<%=nodes%>" id="node" type="com.bea.content.Node"> <img src="<%=request.getContextPath() + "/ShowBinary" + node.getPath()%>"> </utility:forEachInArray> </ul> </utility:notNull>The JSP now contains both content selectors.