Gabriel,

Thanks for the reply. I'll take a look at the patches/taglib. I still don't see my Screen classes executed though, unless I modify, or override, JspLayout::doBuild() to exec the screen (Note: This solution has other problems.). I think my problem may be that I am not using the "screen_placeholder" object correctly.

Does anyone have an example of how to use "screen_placeholder"? The JavaDoc of JspScreenPlaceholder says to declare it as a bean, and use "<%=screen_placeholder%>", but this just puts the Object.toString() output on the page. The only other method in JspScreenPlaceholder is exec(), which looks like it would execute the JSP, but I don't see how to get the generated HTML to output to the response. An example of how to use the "navigation" object (of type JspNavigation), which is also in the request, would be appreciated also.

TIA,
Joe









From: Gabriel Moreno <[EMAIL PROTECTED]>
Reply-To: "Turbine Users List" <[EMAIL PROTECTED]>
To: Turbine Users List <[EMAIL PROTECTED]>
Subject: Re: Using Screen classes with JSP
Date: 03 Mar 2003 11:04:53 -0300

Joe,
I use JSP for templates and use Screens. They do get called. I was in
the same situation you are--even though I prefer Velocity I had to use
JSP. Therefore, I added new features to enhance JSP support in Turbine,
making it support Context to pass data around and ActionEvents. I posted
this patch on the turbine-dev list.

Gabriel

On Fri, 2003-02-28 at 23:56, Joe Morrogh wrote:
> Hi,
>
> I'm new to Turbine, am trying to use JSP templates with Turbine 2.2, and
> could use some direction on using Screen classes. It seems that the purpose
> of Screen classes is to populate the request with data for the JSP to
> display, and, possibly, to use the Security API to restrict access to
> screens. The doBuild() method of the JspLayout class doesn't seem to
> execute the Screen class [i.e.
> ScreenLoader.getInstance().eval(data,data.getScreen());] like the
> DefaultLayout class does, though. Does this mean that Screen classes are
> not recommended for JSP? I also notice Jetspeed, the Jakarta portal
> project, seems to use Actions exclusively, not Screens.
>
> Any insight appreciated.
>
> Thanks,
> Joe
>
> BTW Velocity looks nice, but is not an option for this project.
>
>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Gabriel Moreno
ITC Soluciones
[EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to