In view.jsp, I wrote the code as followed:(All jsps are under docroot folder)
<liferay-portlet:renderURL varImpl="searchURL">
<portlet:param name="jspPage" value="search.jsp" />
</liferay-portlet:renderURL>
Then it gives me the error: 01:39:40,599 ERROR [http-bio-8080-exec-58][MVCPortlet:362] search.jsp is not a valid include
Solution is to change like this:
<liferay-portlet:renderURL varImpl="searchURL">
<portlet:param name="jspPage" value="/search.jsp" /></liferay-portlet:renderURL>