[opencms-dev] ht:dig some more Problems

Joachim Arrasz info at arrasz.de
Thu Jul 24 13:41:00 CEST 2003


Hello Thomas,

thanx a lot for this fast answer. You did it not with the
search_result.jsp that alkacon deployed. That`s a good idea, because it`s
not so overdosed :-)
Well i`ll try to build a jsp which does this a bit more confortable and
will post it then to the List.
Regards Achim

-- 
Questions about OpenCMS?
--> www.synyx.de/board


> Thomas März>
> "Joachim Arrasz" <info at arrasz.de> writes:
>> steps i have to do for this.We actually can`t use Lucene as search
>> engine so i have to do this fast.
>
> <%
> String htConfig = "config";
> String format = "format";
> String words = request.getParameter("words");
>
> String htQuery = "config=" + htConfig + "&format=" + format + "&words="
> + words;
>
> try {
>    String cmd = "/var/www/cgi-bin/htsearch " + htQuery;
>    String line = null;
>    String output = null;
>    Process p = Runtime.getRuntime().exec(cmd);
>    BufferedReader lsOut = new BufferedReader (new InputStreamReader
>    (p.getInputStream() ) );
>                    line=lsOut.readLine();
>                    while ((line=lsOut.readLine()) != null) {
> %>
>                        <%= line %>
> <%
>        }
> } catch (Exception e) {
>  System.err.println("ls error " + e);
> }
> %>
>
> The rest, configuring htdig and using your page-layout, isn't too
> difficult.
>
> Best Regards,
> Thomas Maerz
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit http://mail.opencms.org/mailman/listinfo/opencms-dev






More information about the opencms-dev mailing list