1 34 package org.dspace.app.webui.servlet; 35 36 import java.io.IOException ; 37 import java.sql.SQLException ; 38 39 import javax.servlet.ServletException ; 40 import javax.servlet.http.HttpServletRequest ; 41 import javax.servlet.http.HttpServletResponse ; 42 43 import org.dspace.authorize.AuthorizeException; 44 import org.dspace.core.Context; 45 46 52 public class ControlledVocabularyServlet extends DSpaceServlet 53 { 54 57 protected void doDSGet(Context context, HttpServletRequest request, 58 HttpServletResponse response) throws ServletException , IOException , 59 SQLException , AuthorizeException 60 { 61 62 String ID = ""; 63 String filter = ""; 64 String callerUrl = request.getParameter("callerUrl"); 65 66 if (request.getParameter("ID") != null) 67 ID = request.getParameter("ID"); 68 69 if (request.getParameter("filter") != null) 70 filter = request.getParameter("filter"); 71 72 request.getSession() 73 .setAttribute("controlledvocabulary.filter", filter); 74 request.getSession().setAttribute("controlledvocabulary.ID", ID); 75 response.sendRedirect(callerUrl); 76 } 77 78 protected void doDSPost(Context context, HttpServletRequest request, 79 HttpServletResponse response) throws ServletException , IOException , 80 SQLException , AuthorizeException 81 { 82 83 doDSGet(context, request, response); 84 } 85 86 } 87 | Popular Tags |