On form submission getting the following error: javax.jcr.nodetype.ConstraintViolationException: No matching property definition: txn_type = PP
Hi,
I've my form as something like this:
t1.jsp:
<%@include file="/libs/foundation/global.jsp"%>
<%@page session="false" %>
<%@ page language="java" %>
<form name="frm" method="POST" id="frm" action="<%=resource.getPath()%>.html">
<div>Enter your name<input type="text" name="nameX"/></div>
<input type="submit" name="submit" value="test"/>
</form>
POST.jsp:
<%@include file="/libs/foundation/global.jsp"%>
<%@ page session="false"%>
<%
String transaction_type = request.getParameter("namex");
log.info("teststttttt"+transaction_type);
%>
I'm getting error:
*ERROR* [127.0.0.1 [1437981615101] POST /content/abc/en/t1.html HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during response processing.
javax.jcr.nodetype.ConstraintViolationException: No matching property definition: nameX = kjkjkjkj