velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: JSP to VTL
Date Thu, 04 Oct 2001 01:49:47 GMT
On 10/3/01 9:47 PM, "Bojan Smojver" <bojan@binarix.com> wrote:

> "Soriano, Jaume" wrote:
>> 
>> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Hello again:
>> one 'big' doubt...
>> I know how to transform a JSP code like
>> 
>> <%
>>       repId = yapper.getParticipantId();
>> %>
>> 
>> to Velocity, but, what about the following?
>> 
>> <%
>>         yapper.performSomeAction(); //it returns 'void'
>>         other_var = yapper.afterActionPerformed();
>> %>
> 
> Void return values will appear in resulting output as nothing. So, this
> should be OK:
> 
> $yapper.performSomeAction()
>

Ah - yes, never mind the $! - it shouldn't be required for a void
-- 
Geir Magnusson Jr.     geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin



Mime
View raw message