09-17-2014 08:09 AM
500 Description: An error inside the HTTP server which prevented it from fulfilling the request.
Message: Wrapped Exception (with status template): 'Error on line 26, column 31 in nodeAct.get.html.ftl Expecting a string, date or number here, Expression uname is instead a freemarker.template.SimpleHash'.
Exception: freemarker.core.NonStringException - Error on line 26, column 31 in nodeAct.get.html.ftl Expecting a string, date or number here, Expression uname is instead a freemarker.template.SimpleHash
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
jQuery.support.cors = true;
var urlTicket = "${url.serviceContext}/api/login?u=${user}&pw=${pass}";
var ticket = "";
var request = $.get(urlTicket, function(data,status){
ticket = data.toString().substring(48,95);
//window.location.href = "${url.serviceContext}/doAct?nId=${nId}${arguments}&alf_ticket="+ticket;
},'html'
);
request.error(function(jqXHR, textStatus) {
if (textStatus == 'error'){
status.code = 403;
status.message = "User not found.";
status.redirect = true;
}
});
</script>
<title>Doing actions</title>
</head>
<body>
<div id="error-box" >
<br />
<br /><td>nombre= ${uname}</td>
</div>
</body>
</html>
<br /><td>nombre= ${uname}</td>
var s = new XML(config.script);
model.uname =s.nodeAct.nombre;
09-18-2014 03:11 AM
09-18-2014 04:21 AM
<nodeAct>
<nombre>admin</nombre>
<clave>123123</clave>
</nodeAct>
09-18-2014 06:07 AM
09-18-2014 08:23 AM
09-19-2014 08:38 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.