You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Gupta, Arindam" <ar...@fanniemae.com> on 2004/04/16 15:53:46 UTC

More Veltag questions...

Hi,
I am not sure if this has been discussed but could not locate it in the
archives. If I want to use Veltag to sneak in Velocity into the
environment but it keep it wrapped under JSPs for the time being, I
would definitely like to the have the wrapper as thin as possible.
Having said that, how do I expose the tools that I would normally expose
via the toolbox.xml for a pure Velocity template? 

I tried something like this:



-----Original Message-----
From: Mike Curwen [mailto:gb_dev@gb-im.com] 
Sent: Thursday, April 15, 2004 4:25 PM
To: 'Velocity Users List'
Subject: RE: RE : Veltag sample....


The best response is "ANY CLASS USED IN A JSP MUST ALWAYS BE PACKAGED!"
 
why:  you have no guarantee what ultimate package your JSP is being
compiled into. On Tomcat, for instance, a JSP is packaged with
'org.apache.jsp.*'
 
When that happens, any 'unpackaged' class imports are "magically" under
this new package, and thus, "not found in import".
 
Weblogic probably does something similar.



> -----Original Message-----
> From: Tim Colson [mailto:tcolson@cisco.com]
> Sent: Thursday, April 15, 2004 2:56 PM
> To: 'Velocity Users List'
> Subject: RE: RE : Veltag sample....
> 
> 
> > Thanks. The first time I did put the SimpleBean under the 
> > WEB-INF/classes.
> Actually, that really should do the trick. Hmm.
> 
> I can't say anything about Weblogic, but I'd recommend grabbing Tomcat

> 4.1 and give it a quick try. At least then you'd know it works (or
> doesn't) and if it's a Weblogic thing.
> 
> Cheers,
> Timo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org