Re: Standalone pages

[email protected] Thu, 9 Oct 2014 15:13:21 +0200 (CEST)
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <311819818.229233694.1412860401023.JavaMail.root@zimbra65-e11.priv.proxad.net>
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 Tomcat server as easily as you can drop a .php file in an Apache server's DocumentRoot directory.

Many thanks.

Philippe



----- Mail original -----
De: "Erik Hatcher" <[email protected]>
À: "Velocity Users List" <[email protected]>
Envoyé: Jeudi 9 Octobre 2014 14:59:02
Objet: Re: Standalone pages

Philiippe - I just noticed you posted this to the velocity user list.  How Solr uses Velocity is perhaps a bit niche/different, so best to ask over on the Solr user list for future questions about the Solr/Velocity integration.  But I’m on both lists :)

	Erik

On Oct 9, 2014, at 4:19 AM, [email protected] wrote:

> 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
> 
> http://myserver:8983/solr/mycollection/test
> 
> returns a 404 error.
> 
> http://myserver:8983/solr/mycollection/browse
> 
> works, though.
> 
> How does one create "standalone" Velocity pages, such as test.vm?
> 
> Many thanks.
> 
> Philippe
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]