[opencms-dev] Search in export

DI Gunther Schmidl schmidl at webdynamite.com
Mon Nov 14 15:48:32 CET 2005

Hi all,

I'm having problems getting search to work with exported files. I have a
search.jsp and result.jsp which work just fine inside the CMS, and a search
index for the offline project.

However, if I export search.jsp, the
<cms:link>/sites/foo/result.jsp</cms:link> tag does not get expanded to
.../opencms/export/sites/foo/result.jsp but
.../opencms/opencms/sites/foo/result.jsp. As long as someone is logged in to
the CMS, that is of course not a problem, but no "outsider" can use the

Even worse, if I manually change the form's action to
/opencms/export/sites/foo/result.jsp, the parameters do not appear to get
passed in (the query parameter comes out as "null" even though it works fine
in both cases I mentioned) and no results are returned.

What am I doing wrong? For reference, here's the list of parameters I'm

<input type="text" name="query" size="50">
<input type="hidden" name="index" value="Foo Project (Offline)">
<input type="hidden" name="page" value="1" />
<input type="hidden" name="matchesPerPage" value="10" />
<input type="hidden" name="fields" value="content" />
<input type="hidden" name="<%= CmsTemplateBean.PARAM_URI %>" 
	value="<%= cms.getRequestContext().getUri() %>" />
<input type="hidden" name="__locale" value="<%=
cms.getRequestContext().getLocale() %>" />
<input type="hidden" name="action" value="search" />

Any help is much appreciated.


-- Gunther

  DI Gunther Schmidl (Consultant)
  WebDynamite IT Solutions GmbH
  Landstraße 49, A-4020 Linz, Austria
  +43 / 732 / 777 810 - 16 (fixed)
  +43 / 732 / 777 810 - 50 (fax)

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.0/167 - Release Date: 11.11.2005

More information about the opencms-dev mailing list