Unfortunately, I am using SOLR's implementation of Velocity, and don't know how
to create FileHelpers in that context.
- Mail original -
De: Will Glass-Husain wglasshus...@gmail.com
À: Velocity Users List user@velocity.apache.org
Envoyé: Jeudi 9 Avril 2015 15:06:47
Objet: Re: File
Good morning,
I have found the cause of the error (see below) in this line:
#set ($temp0 = $paramsq.replaceAll(\, ))
I replaced \ by \u0022, and the error message vanished.
#set ($temp0 = $test.replaceAll(\u0022, ))
Philippe
ERROR 500
Encountered AND at
Problem solved.
A query Response Writer was not declared in my solrconfig.xml file.
queryResponseWriter name=velocity class=solr.VelocityResponseWriter
startup=lazy
str name=template.base.dir${velocity.template.base.dir:}/str
/queryResponseWriter
- Mail original -
De:
Hi,
how do you access $link in velocity templates?
I have access to $math, but not link.
Many thanks.
Philippe
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail:
Hi,
I am using the SOLR version of Velocity, running in Tomcat, which doesn't seem
to have a toolbox.xml file. I have manually created such a file, and added it to
...apache-tomcat-8.0.15/webapps/solr/WEB-INF
but to no avail.
Philippe
- Mail original -
De: Mike Kienenberger
Is there a way to create dynamic methods/functions in Velocity Templates?
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
Here's the code:
-
## e.g., apdf0 in /apdf0/189311/28/003_E_PDF.pdf
#set($pdf_dir_v = $list.get($doc.getFirstValue('url').split(/),1))
## e.g., 189311
#set($pdf_year_mon_v = $list.get($doc.getFirstValue('url').split(/),2))
## e.g., 28
#set($pdf_day_v =
Ah, I never thought of using macros as methods/functions. Thanks.
- Mail original -
De: Erik Hatcher erik.hatc...@gmail.com
À: Velocity Users List user@velocity.apache.org
Envoyé: Jeudi 19 Février 2015 16:43:43
Objet: Re: Functions
You mean like the macros? Since you’re in Solr-land,
Hi,
is there a way to use Java classes in SOLR 4.9's Velocity Engine?
If so, how?
Thanks.
Philippe
-
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org
Hi Erik,
thanks for the pointers.
I ended up using a combination of Java String methods and $esc.url().
Philippe
- Mail original -
De: Erik Hatcher erik.hatc...@gmail.com
À: Velocity Users List user@velocity.apache.org
Envoyé: Jeudi 19 Février 2015 16:01:12
Objet: Re: $link
I love how
Hi,
in my test.vm template, I would like to dynamically display all images in the
server's directory.
Can this be done in Velocity, or are system calls nonos?
Many thanks.
Philippe
- Mail original -
De: Erik Hatcher erik.hatc...@gmail.com
À: Velocity Users List
Hello,
I am using currently the Velocity templates that come with the example provided
with SOLR, in Tomcat 7.
I would like to add a Velocity template called test.vm, in the
example/solr/mycollection directory, to display an HTML page containing an
image.
Unfortunately, the following URL
Hi Erik,
thank you for your reply.
However, come to think of it, my question is not SOLR-specific.
I would like to know if it is possible to create lightweight Web pages with
Velocity, in Tomcat, without resorting to servlets, JSP, etc.
In other words, can you add a Velocity template to a
13 matches
Mail list logo