velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Problem in TOMCAT... URGENT
Date Tue, 12 Mar 2002 07:50:49 GMT
Hi all,

I have the servlet application using TOMCAT-IIS AND VELOCITY Template. My

I have the login.html page, in that on submitting the request from the
Login page, the servlet "LoginVerify" for verifying the Login information
is called,

In that servlet i have to verify the login information, if it is successful
i have to display the next screen using the template file. Actual problem
is when I call

"getTemplate("FunctionSelection.vm " ) " in my servlet that loads the
template file, i am getting the error message as

"org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'FunctionSelection.vm' "

Note : Here "FunctionSelection.vm" is my template file ( It is present
under /WEB-INF/templates folder as specified in file)

Please find the web.xml, file below.

web.xml file

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

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
</web-app> file

# we are taking advantage of the fact that the file
# resource loader is the default loader
file.resource.loader.path = WEB-INF/templates
runtime.log = WEB-INF/velocity.log


Could anyone help me on how to do the configuration for web.xml and file?

Thanks in advance.

With Regards,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message