title: How can I use the liferay-ui:search-form tag to specify a JSP containing my search form?
body: <p>I have a JSP, say <code>view.jsp</code>, that's using the basic Liferay search container pattern:</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;liferay-ui:search-container&gt;
      &lt;liferay-ui:search-form page="..." /&gt;
      ...
  &lt;/liferay-ui:search-container&gt;
  </code></pre>
  
  <p>Let's say view.jsp is in the docroot/jsp folder and that, in the same folder, is my search form, <code>search.jsp</code>.  Now, when I do:</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;liferay-ui:search-container&gt;
      &lt;liferay-ui:search-form page="search.jsp" /&gt;
      ...
  &lt;/liferay-ui:search-container&gt;
  </code></pre>
  
  <p>The page renders correctly but without the search form.  In the console, I notice the ff. exception:</p>
  
  <pre class="lang-java prettyprint-override"><code>08:11:01,937 ERROR [IncludeTag:154] java.lang.IllegalArgumentException: Path search.jsp does not start with a "/" character
          at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:370)
          at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:196)
          at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:173)
          at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:223)
          at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
          ...
  </code></pre>
  
  <p>If I use an absolute path like so:</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;liferay-ui:search-container&gt;
      &lt;liferay-ui:search-form page="/jsp/search.jsp" /&gt;
      ...
  &lt;/liferay-ui:search-container&gt;
  </code></pre>
  
  <p>The same thing happens but the exception is now:</p>
  
  <pre class="lang-java prettyprint-override"><code>08:21:21,796 ERROR [IncludeTag:154] javax.servlet.ServletException: File &amp;quot;/jsp/search.jsp&amp;quot; not found
          at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:335)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
          at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:175)
          at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:223)
          at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:58)
          ...
  </code></pre>
  
  <p>Does anyone know how to fix this?</p>