Hello everybody,
I took java Hello World example from this site:
http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp
I complied it into a class file and copied it to the
"ColdFusion8\wwwroot\WEB-INF\classes" directory. I added the following to the
web.xml file (D:\ColdFusion8\wwwroot\WEB-INF) as described in the above article:
<servlet>
<servlet-name>hello</servlet-name>
<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>hello</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
This is how I'm calling it in my code:
<cfscript>
getPageContext().forward(URLEncodedFormat("/hello"));
</cfscript>
I'm getting the following exception:
coldfusion.runtime.TemplateNotFoundException: File not found: /hello
What am I doing wrong? I can't figure it out. I would be very greatful to
anyone who puts me out of my mysery. I've been trying to get this to work for 2
days now.
I am running ColdFusion 8 Developer edition on Windows XP professional.
Thanks in advance,
John
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318310
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4