Geir Magnusson Jr said:
> Could we get this as a patch to what's in CVS ? :)

heh.  i didn't really think you'd want to make VelocityTools a dependency of
Veltag. (of course, if we do, then that might be one more argument for moving
Veltag into the tools project).  anyway, if Arindam doesn't beat me to it,
i'll see if i can whip up a patch for you today or this weekend. :)

> On Apr 16, 2004, at 3:05 PM, Nathan Bubna wrote:
>
> > 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