Hi,
Is it possible to handle post requests in EGL RichUI?
So far I've tried to handle the parameters in java and then passed them in javascript to make them available in EGL.
I've modified the index.jsp, see code below.
Regards,
Marcel
<%@ page import="java.util.Locale"%>
<%@ page pageEncoding="UTF-8"%>
<%
Locale locale = request.getLocale();
Enumeration enumeration = request.getParameterNames();
String params = "";
while(enumeration.hasMoreElements()){
String parameterName = enumeration.nextElement();
params += parameterName + "=" + request.getParameter(parameterName) + "&";
}
%>
<script>
window.localStorage.setItem('postParams', '<%=params%>');
// or
document.cookie='postParams=<%=params%>';
</script>
<html>
<% if ("fr".contains(locale.getLanguage())) { %>
<jsp:forward page="Start-fr_FR.html">
</jsp:forward>
<% } else { %>
<jsp:forward page="Start-nl_NL.html">
</jsp:forward>
<% } %>
</html>
------------------------------
Marcel Beekman
------------------------------