initial-questions.jsp

Date HTML Created

25 Jan 2008

<%-- This takes all the button in: ./jsp/submit/initial-questions.jsp and makes the inputs hidden. Next a small java script submits the form without human intervention. The net effect is that the values are hardwired and the jsp never appears. J. Silvis 21 Jan 2008 --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ page import="org.dspace.core.Context" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.app.webui.servlet.SubmissionController" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <html> <body> <form name="hardwire_form" action="<%= request.getContextPath() %>/submit" method="post" > <input type="hidden" name="multiple_titles" value="true" /> <input type="hidden" name="published_before" value="true" /> <input type="hidden" name="multiple_files" value="true" /> <%-- Hidden fields needed for SubmissionController servlet to know which step is next--%> <%-- Obtain DSpace context--%> <% Context context = UIUtil.obtainContext(request); %> <%= SubmissionController.getSubmissionParameters(context, request) %> </form> <script type="text/javascript"> document.hardwire_form.submit(); </script> </body> </html>