velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <g...@4quarters.com>
Subject Re: Doing our part to make JSP look safe! Was : Re: OT: MVC Purity :-)
Date Fri, 09 Jan 2004 12:56:27 GMT

On Jan 9, 2004, at 7:46 AM, Peter Romianowski wrote:

> Hi,
>
>> Obviously, Denis was kind and handed it to me.  Anyone want me to 
>> check this in in contrib?
>
> I'd say: No. As convenient as this might be - it is too much IMO. And 
> the
> irony in your subject line says it all ;)

it's way over the top, and yes, the subject line is the key.  Still, 
it's not hard to do and will keep people from reinventing the wheel.

We can call them BOMSP - Ball of Mud Server Pages.  We won't allow 
*any* separation of MVC concerns - everything must be in the page...

LOL


>
> That was worth $0.02
>
> And regards
> Peter
>
>> ---- template -----
>> ## setup some data
>> #set($i = 10)
>> #set($array = [1,10,20])
>> ## work w/ it in beanshell
>> #script("beanshell"  "ctx")
>>    System.out.println("bsh : " + ctx.get("i"));
>>    for(int j = 0; j < array.size(); j++)
>>    {
>>        System.out.println(array.get(j));
>>    }
>> #end
>> ## and now in jython
>> #script("jython" "ctx")
>> print "jython : ", ctx.get("i")
>> for n in array:
>>     print n
>> #end
>> ---   output -------
>> bsh : 10
>> 1
>> 10
>> 20
>> jython :  10
>> 1
>> 10
>> 20
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geir@4quarters.com


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


Mime
View raw message