You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Pi...@progi-ouest.fr on 2002/05/21 10:58:22 UTC

macro interlink ?

hello,

I don't know if interlink is the exact word.
I want to do something like this '#macro1 ("param" "#macro2("test"))'.
I tried -> didn't work.
Maybe can somebody tell me if it is possible to do thinks like this and how

thanks in advance


Pierre


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: file.resource.loader

Posted by "Charles N. Harvey III" <ch...@alloy.com>.
Doh!  I knew I'd get called out on it.  Sorry.

Charlie

> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
> Sent: Tuesday, May 21, 2002 10:19 AM
> To: velocity-user@jakarta.apache.org
> Subject: Re: file.resource.loader
> 
> 
> On 5/21/02 9:40 AM, "Charles N. Harvey III" <ch...@alloy.com> wrote:
> 
> > I have a question about how the file resource loader works.
> > I am having jsp forced down my throat no matter how much complaining
> > I do and it is really getting me down.  But enough of my moaning.
> > 
> > I really like the file resource loader option (and the url 
> resouce loader)
> > and I would like to be able to do that with jsp's.  I will be using the
> > jsp's in the same way as templates, no java code.  But I am relatively
> > sure that the jsp page must be in a Tomcat directory because it has
> > to be compiled.  But I would really really like to put it elsewhere
> > and use something like a resource loader.
> 
> This is a JSP question?   Here?  :)
> 
> -- 
> Geir Magnusson Jr.
> Research & Development, Adeptra Inc.
> geirm@adeptra.com
> +1-203-247-1713
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: file.resource.loader

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 5/21/02 9:40 AM, "Charles N. Harvey III" <ch...@alloy.com> wrote:

> I have a question about how the file resource loader works.
> I am having jsp forced down my throat no matter how much complaining
> I do and it is really getting me down.  But enough of my moaning.
> 
> I really like the file resource loader option (and the url resouce loader)
> and I would like to be able to do that with jsp's.  I will be using the
> jsp's in the same way as templates, no java code.  But I am relatively
> sure that the jsp page must be in a Tomcat directory because it has
> to be compiled.  But I would really really like to put it elsewhere
> and use something like a resource loader.

This is a JSP question?   Here?  :)

-- 
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


file.resource.loader

Posted by "Charles N. Harvey III" <ch...@alloy.com>.
I have a question about how the file resource loader works.
I am having jsp forced down my throat no matter how much complaining
I do and it is really getting me down.  But enough of my moaning.

I really like the file resource loader option (and the url resouce loader)
and I would like to be able to do that with jsp's.  I will be using the
jsp's in the same way as templates, no java code.  But I am relatively
sure that the jsp page must be in a Tomcat directory because it has
to be compiled.  But I would really really like to put it elsewhere
and use something like a resource loader.

Anybody know if this is possible?  Thanks.

Charlie

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: macro interlink ?

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 5/21/02 4:58 AM, "PierreBESSON@progi-ouest.fr"
<Pi...@progi-ouest.fr> wrote:

> hello,
> 
> I don't know if interlink is the exact word.
> I want to do something like this '#macro1 ("param" "#macro2("test"))'.
> I tried -> didn't work.
> Maybe can somebody tell me if it is possible to do thinks like this and how
> 

What exactly are you trying to do?  I think you are trying to invoke a VM
with the output of another, and that's possible.

#macro( foo $val )
   Hello -> $val
#end

#macro( bar $b)
  Hello from bar : $b
#end

#foo("#bar('a')")

Should output

   Hello ->  Hello from bar : a



-- 
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>