Gupta, Arindam said:
> Received the following errors while compiling:
...
> D:\VelocitySource\jakarta-velocity\contrib\temporary\veltag\src\java\org
> \apache\taglibs\velocity\JSPContext.java:41: cannot resolve symbol
>     [javac] symbol  : constructor ChainedContext
> (<nulltype>,javax.servlet.ServletRequest,javax.servlet.ServletResponse,j
> avax.servlet.ServletContext)
>     [javac] location: class
> org.apache.velocity.tools.view.context.ChainedContext
>     [javac]         super(null,
>     [javac]         ^

oh, yeah.  you'll have to cast the ServletRequest and ServletResponse to
HttpServletRequest and HttpServletResponse.

> D:\VelocitySource\jakarta-velocity\contrib\temporary\veltag\src\java\org
> \apache\taglibs\velocity\VelocityTag.java:185: cannot resolve symbol
>     [javac] symbol  : variable TOOLBOX_KEY
...

add this to VelocityTag:

    /**
     * Key used to access the toolbox configuration file path from the
     * Servlet or webapp init parameters ("org.apache.velocity.toolbox").
     */
    protected static final String TOOLBOX_KEY =
        "org.apache.velocity.toolbox";


> I had to add a couple of import statements in the VelocityTag.java and
> fix a semi-colon.

yeah, like i said, i threw it together "hastily" (i.e. in about 10 minutes)
and hadn't even tried compiling yet.  sorry. :-/

>  I will send out the final code once I have tested it.
...

that'd be great.  thanks!

Nathan Bubna
[EMAIL PROTECTED]


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

Reply via email to