Hi 
I've tried to install velocity with struts.
I followed the installation instructions from velocity.
Put velocity-1.3.1.jar and velocity-tools-1.1-beta1.jar in my lib.
copied toolbox.xml and velocity.properties in my WEB-INF
canged web.xml to
<snip>

 <servlet>
    <servlet-name>velocity</servlet-name>
   
<servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
    <init-param>
        <param-name>toolbox</param-name>
        <param-value>/WEB-INF/toolbox.xml</param-value>
    </init-param>
    <load-on-startup>10</load-on-startup>
  </servlet>
...
<servlet-mapping>
    <servlet-name>velocity</servlet-name>
    <url-pattern>*.vm</url-pattern>
  </servlet-mapping>

</snip>
and I've writen the following velocitypage:

<html>
    <head>
        <title>First Velocitypage</title>
    </head>
    <body>
        #set ($hello="Dies ist meine erste Velocitypage")
        $hello<br/>
        $msg.get("hello")<br/>
        $msg.exists("hello")<br/>
        
    </body>
</html>

velocityservlet renders $hello but it did not find the message 
the ressources to the messages is right, I've tested it with a JSP

Any suggestions?

Kind regards,
Markus


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to