tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Bauman" <n...@cortexity.com>
Subject Re: Taglibs Article
Date Sat, 26 May 2001 02:14:59 GMT
Well, you're exposing an Event API for this application, for starters. And,
ahem, "getRole()" smells like some serious business logic, eh?

> On Fri, 25 May 2001, Nick Bauman wrote:
> 
>> ----8<----
>>
>> #foreach( $event in $events )
>>   $yapper = $meeting.getParticipation(
>>   ((MeetingEvent)$event).getFromId() ) #if(
>>   $repRole.equals($yapper.getRole() )
>>     $repId = $yapper.getParticipantId()
>>     <font color="$black"><b>$yapper.getName()</b></font>
>>   #else
>>     <font color="$blue"><b>$yapper.getName()</b></font>
>>   #end
>>   #if ( $event.getClass().getName().equals($chatEventType) )
>>     ((com.webhelp.emeeting.events.ChatEvent)$event).getStoredData()
>>     <br>
>>   #else if( $event.getClass().getName().equals($urlPushedEventType) )
>>     <a
>>
href="((com.webhelp.emeeting.events.URLPushedEvent)$event).getStoredData()">((com.webhelp.emeeting.events.URLPushedEvent)$event).getStoredData()</a><br>
>>   #end
>> #end
>>
>> ----8<----
> 
> where's the business logic?


-- 
Nick Bauman
Software Developer
3023 Lynn #22
Minneapolis, MN
55416
Mobile Phone: (612) 810-7406


Mime
View raw message