cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <dar...@dti.net>
Subject Re: how can a bean access the XML data
Date Wed, 26 Dec 2001 13:42:24 GMT
<xsp:logic>
         MyBean  myBean = new MyBean();
         myBean.setXXX("test");
         String  s = myBean.getYYY();
         <!-- write your tag and the value of variable s to the output -->
         <your_tag>
                 <xsp:expr>s</xsp:expr>
         </your_tag>
</xsp:logic>


DR


At 10:39 PM 12/25/01 +0530, you wrote:
>Hi,
>  
>Using Cocoon 1.8 I am calling an xml page. On the click of a button I wish to call a java
bean to process the data. How will the bean access the data? In a JSP we do the same using
the get-set methods. In XSP how does the bean have access to the data and how should the bean
be called from the xml?
>  
>Thanks,
>  
>Raju


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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