%@ page import="org.opencms.workplace.explorer.*" %><% // initialize the workplace class CmsNewResourcePointer wp = new CmsNewResourcePointer(pageContext, request, response); //////////////////// start of switch statement switch (wp.getAction()) { case CmsNewResourcePointer.ACTION_CANCEL: //////////////////// ACTION: cancel button pressed wp.actionCloseDialog(); break; case CmsNewResourcePointer.ACTION_OK: //////////////////// ACTION: resource name specified and form submitted wp.actionCreateResource(); if (wp.isResourceCreated()) { wp.actionEditProperties(); // redirects only if the edit properties option was checked } break; case CmsNewResourcePointer.ACTION_NEWFORM: case CmsNewResourcePointer.ACTION_DEFAULT: default: //////////////////// ACTION: show the form to specify the folder name, edit properties option and create index file option wp.setParamAction(wp.DIALOG_OK); %><%= wp.htmlStart() %> <%= wp.bodyStart("dialog") %> <%= wp.dialogStart() %> <%= wp.dialogContentStart(wp.getParamTitle()) %>
<%= wp.dialogEnd() %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %> <% } //////////////////// end of switch statement %>