I have requirement that:
- After submitting the request, Liferay displays the message
Your request processed successfully
- Instead of that I have to add custom messages and display them like course created successfully, course deleted successfully, course modified successfully etc..
Is it possible? Is there any way to display the success or failure message?
<%@page import ="javax.portlet.PortletURL" %>
<%@ page import="javax.portlet.RenderResponse" %>
<%@ page import="javax.portlet.ActionRequest" %>
<%@ page import="com.liferay.portal.kernel.util.Validator" %>
<%
PortletURL searchCourseURL=renderResponse.createActionURL();
searchCourseURL.setParameter(ActionRequest.ACTION_NAME,"findCourses");
%>
<script type="text/javascript" src="/html/js/jquery/jquery.js"></script>
<form action="<%=searchCourseURL%>" method="post">
<div class="label1">Enter Course Name</div><input type="text" id="cname" name="cname" value=" "/>
<input type="submit" name="submit" value="Submit"/>
</form>
In the above example, after submitting the request it displays like request process successfully instead I have to display the message:
search is completed