cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Watson" <c.wat...@zen.co.uk>
Subject RE: XML generation
Date Tue, 04 Jun 2002 14:58:53 GMT
The EJB bit is beyond me, I guess yes if it's in the same JVM ...?

You can actually use request.getParameter within a bit of <xsp:logic/>
rather than the request logicsheet, though the latter is an option.

Good Luck
Christopher
> -----Original Message-----
> From: Deepak Mehta [mailto:deep@deeeep.com]
> Sent: 04 June 2002 15:32
> To: cocoon-users@xml.apache.org
> Subject: Re: XML generation
> 
> 
> Thanks,
> 
> This worked! Now I have the output part working, now I need to work on a
> form that creates a record in an entity EJB. I assume I use the request
> logicsheet to get the parameters from the form post and then 
> invoke a method
> on my singleton to invoke a create on the EJB... Could it be so simple?
> 
> Regards
> Deeeep
> 
> On 4/6/02 16:27, "Christopher Watson" <c.watson@zen.co.uk> wrote:
> 
> > 
> >> -----Original Message-----
> >> From: Deepak Mehta [mailto:deep@deeeep.com]
> >> Sent: 04 June 2002 10:53
> >> To: cocoon-users@xml.apache.org
> >> Subject: XML generation
> >> 
> >> 
> >> Hi All,
> >> 
> >> Here is some info on the specs of my setup before I explain 
> the problem:
> >> 
> >> -CPU: MacOSX 10.1.4 running JDK 1.3.1
> >> -EJB: Jonas 2.4.4 with embedded tomcat 3.3.1 and cocoon 2.0.2
> >> -DB: PostgreSQL 7.1.2 with standard JDBC drivers
> >> 
> >> Setup: Jonas runs EJBs and Tomcat has a singleton servlet that 
> connects to
> >> the EJB and has methods for the XSP pages to generate dynamic XML.
> >> 
> >> Problem: if I let the singleton generate a String containing the
> >> final XML,
> >> which is easy, since I do not need to throw a lot of things 
> Cocoon's way,
> >> then the problem is that Cocoon converts the '<' and '>' to &gt;
> >> and &lt;...
> > 
> > Deepak, I suspect you've got something like
> > <xsp:expr>myStringVariable</xsp:expr>
> > 
> > try replacing this with
> > 
> <util:include-expr><util:expr><xsp:expr>myStringVariable</xsp:expr
> ></util:ex
> > pr></util:include-expr>
> > 
> > Also, to use the util: logicsheet, you'll need to add
> > 
> >  xmlns:util="http://apache.org/xsp/util/2.0"
> > 
> > to your opening xsp:page tag
> > 
> >> Is there a way to stop Cocoon from messing with the String 
> data in an xsp
> >> page?
> >> 
> >> Thanks
> >> Deeeep
> >> 
> >> --
> >> ------------------------------------------------------------------
> >> ---------
> >> Deepak 'Deep' Mehta
> >> E-mail: deep@deeeep.com
> >> URL: http://www.deeeep.com/
> >> 
> >> PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5
> >> 
> >> Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
> >> ------------------------------------------------------------------
> >> ---------
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> 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>
> >> 
> >> 
> > 
> > 
> > ---------------------------------------------------------------------
> > 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>
> 
> -- 
> ------------------------------------------------------------------
> ---------
> Deepak 'Deep' Mehta
> E-mail: deep@deeeep.com
> URL: http://www.deeeep.com/
> 
> PGP Fingerprint: 837E B8E6 6AF4 6675 2730  0848 7731 09F5 3445 00A5
> 
> Money-making is a wonderful thing (Maxin & Skin in Carmen Queasy)
> ------------------------------------------------------------------
> ---------
> 
> 
> ---------------------------------------------------------------------
> 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>
> 
> 

---------------------------------------------------------------------
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