%@ page session="false" %>
<%@ taglib uri='http://java.sun.com/portlet_2_0' prefix='portlet'%>
<%@ page import="javax.portlet.*"%>
<%@ page import="java.util.*"%>
Testing Portlet Actions...
Testing RenderParameters with Portlet Actions...
<%
PortletURL url = renderResponse.createActionURL();
url.setParameter("checkAction","action1");
url.setSecure(renderRequest.isSecure());
%>
click here to invoke the first portlet action.
<%
if ("action1".equals(ps.getAttribute("checkAction", PortletSession.PORTLET_SCOPE)))
{
out.print("Result: ");
out.print("passed");
}
%>
<%
PortletURL url1 = renderResponse.createActionURL();
url1.setParameter("checkActionRender","step1");
url1.setParameter("jspNameTransfer","test4.jsp");
url.setSecure(renderRequest.isSecure());
%>
click here for step 1.
<%
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 here for step 2.
<%
}
if (("step3".equals(renderRequest.getParameter("checkActionRender3"))) &&
("step2".equals(renderRequest.getParameter("checkActionRender2"))))
{
out.print("Result: ");
out.print("passed");
}
%>
<%
url = renderResponse.createRenderURL();
url.setParameter("jspName","test5.jsp");
url.setSecure(renderRequest.isSecure());
%>