1 package info.magnolia.module.admininterface.dialogpages; 2 3 import info.magnolia.cms.gui.dialog.DialogSuper; 4 import info.magnolia.cms.gui.dialog.DialogWebDAV; 5 import info.magnolia.cms.i18n.MessagesManager; 6 import info.magnolia.module.admininterface.DialogPageMVCHandler; 7 8 import java.io.IOException ; 9 import java.io.PrintWriter ; 10 11 import javax.servlet.http.HttpServletRequest ; 12 import javax.servlet.http.HttpServletResponse ; 13 14 15 19 public class WebDavIFrameDialogPage extends DialogPageMVCHandler { 20 21 public WebDavIFrameDialogPage(String name, HttpServletRequest request, HttpServletResponse response) { 22 super(name, request, response); 23 } 24 25 28 private static final long serialVersionUID = 222L; 29 30 protected void draw(HttpServletRequest request, HttpServletResponse response) throws IOException { 31 PrintWriter out = response.getWriter(); 32 33 DialogWebDAV dav = (DialogWebDAV) request.getSession().getAttribute( 34 request.getParameter(DialogSuper.SESSION_ATTRIBUTENAME_DIALOGOBJECT)); 35 if (dav != null) { 37 if (request.getParameter("subDirectory") != null) { dav.setSubDirectory(request.getParameter("subDirectory")); } 40 if (request.getParameter("selectedValue") != null) { dav.setValue(request.getParameter("selectedValue")); } 43 dav.drawHtmlList(out); 44 } 45 else { 46 out.println("<i>" + MessagesManager.get(request, "webdav.error") + "</i>"); } 48 49 } 50 51 } 52 | Popular Tags |