cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: AW: XSP question
Date Wed, 19 Feb 2003 20:45:26 GMT
no xbean logicsheet exists in 2.x.  I have seen a start of such from 1.x 
but it would be non-functional now.  The advice below should be what you 
need, with the obvious understanding that autopopulating fields as you get 
with useBean does not exist.

Geoff Howard

At 02:46 PM 2/19/2003, you wrote:
>hi nesto,
>
>I don't know the xbean logicsheet at all (doesn't seem to be in cocoon <=
>2.0.4), but anyway;
>
>in the simplest case, the <jsp:useBean> boils down to a variable declaration
>(scope = page):
>
><jsp:useBean id="myBean" scope="page" class="mypackage.MyClass"/>
>
>would have an equivalent of something like this:
>
><xsp:logic>
>                 mypackage.MyClass
>         myBean = new mypackage.MyClass ();
></xsp:logic>
>
>
>for the other scopes you have to store/load those variables in/from the
>respective contexts: for session scope it's the session, for application
>scope it's the ServletContext. both have getAttribute()/setAttribute() which
>you can utilize.
>
>hope this helps, in case that xbean logicsheet is not available. you
>eventually might want to take a lookt at the JSP spec.
>
>-----Urspr√ľngliche Nachricht-----
>Von: cocoon-users-return-46817-m_rolappe=web.de@xml.apache.org
>[mailto:cocoon-users-return-46817-m_rolappe=web.de@xml.apache.org]Im Auftrag
>von Nesto
>Gesendet: Mittwoch, 19. Februar 2003 15:11
>An: cocoon-users@xml.apache.org
>Betreff: XSP question
>
>
>Hi!
>Sorry if I repost a question, but I need help!
>I want to convert my JSP in XSP, and I have to reuse complex Javabeans.
>
>I read in the Logicsheet documentatin that there is a xbean library that
>provides functionallity similar to the jsp:useBean directives.
>But I didn't found much more documentation, and I don't know how to use it!
>Where I can read more?
>
>Please give me some hint on how "translate" my
><jsp:useBean id="xxx" scope="session" class="yyy.zzz" /> of my old JSP, in
>code for my new XSP
>
>Regards,
>Nesto
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message