mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3475 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
<%@ page import="java.io.*,
|
|
java.util.Enumeration,
|
|
java.text.DateFormat,
|
|
java.util.Date,
|
|
org.alfresco.web.bean.content.*,
|
|
org.alfresco.web.bean.*"%>
|
|
<%@ page session="true" %>
|
|
<%@ page errorPage="error.jsp" %>
|
|
<%
|
|
CreateContentWizard wiz = (CreateContentWizard)session.getAttribute("CreateContentWizard");
|
|
CheckinCheckoutBean wiz2 = (CheckinCheckoutBean)session.getAttribute("CheckinCheckoutBean");
|
|
char[] readerBuffer = new char[request.getContentLength()];
|
|
BufferedReader bufferedReader = request.getReader();
|
|
StringBuffer sb = new StringBuffer();
|
|
do
|
|
{
|
|
String s = bufferedReader.readLine();
|
|
if (s == null)
|
|
break;
|
|
sb.append(s).append('\n');
|
|
}
|
|
while (true);
|
|
String xml = sb.toString();
|
|
wiz.setContent(xml);
|
|
if (wiz2 != null)
|
|
{
|
|
System.out.println("saving " + xml + " to checkincheckout");
|
|
wiz2.setEditorOutput(xml);
|
|
}
|
|
xml = xml.replaceAll("<", "<");
|
|
%>
|
|
<html>
|
|
<head>
|
|
<title>Instance Data submitted</title>
|
|
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/main.css"/>
|
|
</head>
|
|
<body>
|
|
<div class="mainSubTitle">
|
|
XML submitted successfully! you rock! Click next!
|
|
</div>
|
|
<tt>
|
|
<%= xml %>
|
|
<tt>
|
|
</body>
|
|
</html>
|