cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: displaying values in a browser from <xsp:logic>
Date Mon, 30 Sep 2002 13:24:01 GMT
Matt MacDougall wrote:

>Hello,
>
>I'm having a problem getting the results of a Java function wrapped in
><xsp:logic> tags to display on my page.  All I would like to do is display
>the value of the variables prevurl and nexturl on the page.  This code below
>is in an xsl file outside of the main template.  I'm calling this template
>within my main one with <xsl:apply-templates select="prevnext"/>
>
>I have the following in an xsl file:
>
><xsl:template match="prevnext">
>

Matt,

Is this a logicsheet? How does relevant portions of your XSP file look 
like? How does pipeline look like?


>	<xsp:logic>
>		String next_move_string = "1";
>		String prev_move_string = "-1";
>
>		String uri = request.getRequestURI();
>
>		<xsp-request:set-paramter
>name="move">next_move_string</xsp-request:set-paramter>;
>		String nextquery = request.getQueryString();
>
>		<xsp-request:set-paramter
>name="move">prev_move_string</xsp-request:set-paramter>;
>		String prevquery = request.getQueryString();
>
>		String nexturl = uri + nextquery;
>		String prevurl = uri + prevquery;
>		nexturl = "Next";
>// just for testing
>		prevurl = "Prev";
>// just for testing
>  </xsp:logic>
>    <xsp:expr>prevurl</xsp:expr>
>    <xsp:expr>nexturl</xsp:expr>
></xsl:template>
>
>
>###################
>
>Shouldn't I be seeing the values between those <xsp:expr> tags?  This is
>compiling fine but I only receive an empty output for the <prevresult> and
><nextresult> tags.  I've tried several things including <xsp:value-of ...>
>

IIRC, there is no <xsp:value-of> tag exist.

Vadim


>but I haven't had any luck.  Does anyone catch any glaring errors here?
>
>Thanks much,
>
>-Matt
>  
>


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