Hi -

Trying the most basic cfx tag to see if i can get one working.
When I try to compile the .java file (copied from ) i get the following errors

MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
import com.allaire.cfx.* ;
^
MyHelloColdFusion.java [13:1] cannot resolve symbol
symbol  : class CustomTag
location: class MyHelloColdFusion
public class MyHelloColdFusion implements CustomTag {
                                          ^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol  : class Request
location: class MyHelloColdFusion
   public void processRequest( Request request, Response response )
                               ^
MyHelloColdFusion.java [14:1] cannot resolve symbol
symbol  : class Response
location: class MyHelloColdFusion
   public void processRequest( Request request, Response response )
                                                ^
4 errors
Errors compiling MyHelloColdFusion.

JAVA FILE

import com.allaire.cfx.* ;

public class MyHelloColdFusion implements CustomTag {
   public void processRequest( Request request, Response response )
      throws Exception {
      String strName = request.getAttribute( "NAME" ) ;
      response.write( "Hello, " + strName ) ;
   }
}

Ok, now i think the last 3 errors occur because of the first error, so lets start there.

How can i add the package or what do i need to do to get this working?

I'm running  CFMX 6,1,0,63958 on Win2K Server and the version info for Java is:
java version 1.4.2_04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

If anyone can help, thanks! If I can get this one working, I'm hoping to create my first real custom tag :)

Thanks

Joe
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to