I've attached a tgz with patches and new files. Note that I've included the classes in the package org.apache.turbine.services.jsp.tags. I had to get them from the source code for Turbine 2.1 because they have been removed from 2.2.
In the JSP templates, I use the context in this way:
---
<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='turbine' %>
<%@ page import = "org.apache.velocity.context.Context" %>
<jsp:useBean id="context" class="Context" scope="request"/>
<turbine:head>
<TITLE>JSP test</TITLE>
</turbine:head>
<turbine:body>
<h1>The message is <%= context.get("mymessage") %> </h1>
</turbine:body>
---
Thanks,
Gabriel
On Tue, 2003-02-11 at 10:03, Martin Poeschl wrote:
> sounds good!
>
> could you please make your changes available for the review??
>
> martin
>
> Gabriel Moreno wrote:
>
> >Hi all,
> >I know you all have a strong preference of Velocity over JSP, and so do
> >I. In a past Turbine project I worked in, we used Velocity and it was
> >great.
> >Now, I'm trying to convince a customer to use Turbine. The problem is
> >that they would use Turbine only if they could use JSP for the pages. I
> >think this is a situation several Turbine supporters are faced with. You
> >can tell from the turbine-user list.
> >Although Turbine claims that JSP can be used for templates, the support
> >it has for that is not even close to that of Velocity templates. So, I
> >decided to make JSP templates closer to Velocity ones. I've added some
> >classes and made some additions to others and now the new JspScreen
> >allows one to use the Context and have access to it from the JSP
> >template the same way you do that in Velocity (of course, the syntax is
> >not as compact). I've also added support for ActionEvents in JSP so that
> >the Context can also be used in them.
> >I also found the bug related to the problem described in:
> >http://www.mail-archive.com/[email protected]/msg02866.html
> >
> >I'd love to contribute all this to the project. I you want the source
> >code, just let me know.
> >
> >Thanks,
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Gabriel Moreno
ITC Soluciones
[EMAIL PROTECTED]
jsppatch.tgz
Description: GNU Zip compressed data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
