You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Trevor Miler <tr...@nephila.co.za> on 2004/09/06 10:07:18 UTC

Example Servlet 2 Fix

Hi there,

Didn't want to classify this as a "bug", the word has so many negative 
connotations.

The example servlet # 2's web.xml has not been updated to take the new 
Init Props Key into account, it still uses pre 1.4 key. Here's an update:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

<servlet>
    <servlet-name>SampleServlet2</servlet-name>
    <servlet-class>SampleServlet2</servlet-class>
    <init-param>
      <!-- new key:  "org.apache.velocity.properties", old was just 
"properties"-->    
      <param-name>org.apache.velocity.properties</param-name>
      <param-value>/velocity.properties</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
</web-app>

It would be great if one of the commiters could update this.

Trevor Miller

--
trevor@nephila.co.za
http://www.nephila.co.za

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org