« Return to Thread: Velocity - where to set velocity to read class files not only in WEB-INF/classes but also in sub directories in WEB-INF
Mead Lai wrote:I have look through your Code,
I think the problem is in your web.xml configuration.
line 22~25
<servlet>
<servlet-name>VelocityTest</servlet-name>
<servlet-class>velocityTest</servlet-class>
</servlet>
the Servlet Class Package is wrong
It shall be that:
<servlet>
<servlet-name>VelocityTest</servlet-name>
<servlet-class>com.email.emailData.emailObj.velocityTest</servlet-class>
</servlet>
U can get U classes now.
luck
Mead
On Wed, May 14, 2008 at 9:20 AM, newbie-gero <chongming@e7tech.com> wrote:
>
> Hi,
> i am currently trying out velocity and i need some guidance from you guys.
> Velocity is able to read class files from the default path WEB-INF/classes.
>
> I have create folders in WEB-INF/classes eg:
> WEB-INF/classes/JavaData/JavaObj
>
> I placed my class file in JavaObj directory and velocity is not able to find
> the class files. Where do i set to ask velocity to read the class files in
> WEB-INF/classes/JavaData/JavaObj
>
> I have upload my example as shown below:
> http://www.nabble.com/file/p17221634/velocity.war.zip velocity.war.zip
>
> Thanks for the guidance
> --
> View this message in context: http://www.nabble.com/Velocity---where-to-set-velocity-to-read-class-files-not-only-in-WEB-INF-classes-but-also-in-sub-directories-in-WEB-INF-tp17221634p17221634.html
> Sent from the Velocity - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
« Return to Thread: Velocity - where to set velocity to read class files not only in WEB-INF/classes but also in sub directories in WEB-INF
| Free Forum Powered by Nabble | Forum Help |