You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Roland Ucker <ro...@googlemail.com> on 2012/07/31 14:07:13 UTC

solrconfig.xml | registration of JSPs

Is it possible to map a request URL to a JSP in the solrconfig.xml?

Re: solrconfig.xml | registration of JSPs

Posted by Paul Libbrecht <pa...@hoplahup.net>.
Le 31 juil. 2012 à 14:07, Roland Ucker a écrit :
> Is it possible to map a request URL to a JSP in the solrconfig.xml?

Roland,

not in the solrconfig.xml but it's not too hard to make a wrapper that can do that... I have code here that does this (actually forwards the requests to anything, not just JSP) but I have not yet been able to contribute it.

Basically it is:
- a thread-local fed by a filter to hold request and response
- a response-writer that forwards the request
- a few tools, mostly ported from solr/itas

The huge advantage wrt solr/itas is that you can code loads of experimental things into the jsp, and maybe later revamp this into a better MVC architecture one day (e.g. invoking static members or invoking constructors).

paul