El Domingo, 13 de Octubre de 2002 17:26, Sonny Sukumar escribió: > Hi guys, > > Is it possible to access request parameters from within an XSP or > logicsheet?
Yes, you can, for more info: http://xml.apache.org/cocoon/userdocs/xsp/request.html > > For example, when I go to http://localhost:8080/cocoon/test?param=12345678 > I'd like to use the value of param in my XSP or logicsheet as a basis for > calling Java functions. You can do it using: <xsp:logic> String sParam = <xsp-request:get-parameter name="param" default=""/>; </xsp:logic> Rememeber to declare your namespace in you XSP: xmlns:xsp-request="http://apache.org/xsp/request/2.0" > > In my pipeline, I currently just have the XSP as the generator and 1 XSL > stylesheet to output to HTML. I think I could introduce another XSL > stylesheet before this one which has use-request-paramters set to true and > get the param that way, but it seems like it'd be slower to do 2 transforms > with 2 separate stylesheets rather than 1 transform with 1 stylesheet. > > Thanks! > > Sonny Antonio Gallardo > > _____________________________________________________________ > Conserve wilderness with a click (free!) and get your own EcologyFund.net > email (free!) at http://www.ecologyfund.com. > > _____________________________________________________________ > Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No > Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag > > --------------------------------------------------------------------- > 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]> --------------------------------------------------------------------- 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]>