📄 test4.jsp.svn-base
字号:
<!-- Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.See the License for the specific language governing permissions andlimitations under the License.--><%@ page session="false" %><%@ taglib uri='http://java.sun.com/portlet_2_0' prefix='portlet'%><%@ page import="javax.portlet.*"%><%@ page import="java.util.*"%><portlet:defineObjects/><%String baseNS = renderResponse.getNamespace();PortletSession ps = renderRequest.getPortletSession();%><I>This portlet is testing basic functions...</I><P><FONT SIZE="-1"><B>Testing Portlet Actions...</B><BR><%PortletURL url = renderResponse.createActionURL();url.setParameter("checkAction","action1");url.setSecure(renderRequest.isSecure());%>click <A HREF="<%=url.toString()%>">here</A> to invoke the first portlet action.<BR><%if ("action1".equals(ps.getAttribute("checkAction", PortletSession.PORTLET_SCOPE))){ out.print("Result: "); out.print("<b>passed</b>");}%><P><B>Testing RenderParameters with Portlet Actions...</B><BR><%PortletURL url1 = renderResponse.createActionURL();url1.setParameter("checkActionRender","step1");url1.setParameter("jspNameTransfer","test4.jsp");url.setSecure(renderRequest.isSecure());%>click <A HREF="<%=url1.toString()%>">here</A> for step 1.<BR><%if ("step2".equals(renderRequest.getParameter("checkActionRender2"))){ PortletURL url2 = renderResponse.createRenderURL(); url2.setParameter("checkActionRender2","step2"); url2.setParameter("checkActionRender3","step3"); url2.setParameter("jspName","test4.jsp"); url2.setSecure(renderRequest.isSecure());%>click <A HREF="<%=url2.toString()%>">here</A> for step 2.<BR><%}if (("step3".equals(renderRequest.getParameter("checkActionRender3"))) && ("step2".equals(renderRequest.getParameter("checkActionRender2")))){ out.print("Result: "); out.print("<b>passed</b>");}%><%url = renderResponse.createRenderURL();url.setParameter("jspName","test5.jsp");url.setSecure(renderRequest.isSecure());%><FORM METHOD="POST" ACTION="<%=url.toString()%>"><INPUT value="Next >>" TYPE="submit"></FORM></FONT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -