Title: RE: Too much java in xsp

From your other message sounds like you figured it out, but request parameters are handled in the tutorial I sent a link to.

Geoff

> -----Original Message-----
> From: Lionel Crine [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 3:30 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Too much java in xsp
>
>
> OK, why not writing a generator.
>
> But how can I get the values from the form to my generator?
> With the xsp generator it was easy, I only had to use :<xsp:request
> get-parameter ...>
>
>
>
>
> At 12:31 12/02/2003 -0500, you wrote:
>
> >Well, Robert's suggestion is a good one and I've already written a
> >tutorial about
> >that
> >(<http://xml.apache.org/cocoon/tutorial/tutorial-generator.ht
> ml>http://xml.apache.org/cocoon/tutorial/tutorial-generator.html)
> >
> >
> >But if that seems out of reach, you can use something like:
> ><xsp:page>
> ><xsp:structure>
> ><xsp:include>yourpackage.*</xsp:include>
> ></xsp:structure>
> >...
> >
> >to include any java class in your xsp and use it like you
> would anywhere
> >else:
> >yourpackage.YourHelper.doSomethingComplicated(object);
> >or whatever.  In the end, your xsp winds up as a java file
> (a Generator) so
> >you can do whatever can be done in java from within an xsp (except
> >inheritance??)
> >including code encapsulation.
> >
> >See
> ><http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concept
> s.html#java-logicsheets>http://xml.apache.org/cocoon/userdocs/
> xsp/logicsheet-concepts.html#java-logicsheets
> >
> >for some specific things to look out for when doing that -
> the doc is
> >aimed at
> >logicsheet development, but applies to this as well.
> >
> >Some of the logicsheets do this as well, and would make good
> examples,
> >though they are
> >slightly more complicated because they introduce one layer
> of abstraction
> >from an xsp.
> >
> >Geoff
> >
> >
> > > -----Original Message-----
> > > From: Lionel Crine
> [<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 12, 2003 12:03 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: Too much java in xsp
> > >
> > >
> > > Please, can you give me more information (hints) about the
> > > helper Geoff ?
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > Please check that your question  has not already been
> answered in the
> > > FAQ before
> > posting.
> >
> <<http://xml.apache.org/cocoon/faq/index.html>http://xml.apach
e.org/cocoon/faq/index.html>
>
> >
> > To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
> >


---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


Reply via email to