Hi,
I am trying to validate a form field with the following jsp, but it seems that the jsp is not executing, this validation was working in the older version
Why is not working in the new version?
<%
String name = request.getParameter("name");
String question = request.getParameter("question");
String value = request.getParameter("value");
if (value.length() > 10) {
out.println("The maximum length set in here is 50 characters.");
}
if(!value.matches("[a-zA-Z0-9,._/&() -]+")){
out.println("Special characters are not allowed.");
}
%>
Validation URI : /aveksa/custom/jsp/validate_phone.jsp
Looking at the General updates in 7.1.1 "What's New” dashboard I see this:
The organization of custom JSPs has changed to organize into two categories (public and private). By default, custom jsp files are stored in the private area and are secured requiring users to first login before accessing.
Since all validation JSPs are not called from the logged-in user context and are called in the background, I believe you will need to move all such JSPs from "JSP Pages” to "External JSP Pages” and modify the URLs from /aveksa/custom/jsp to /aveksa/custom/external_jsp.