[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

displaying values from <xsp:logic>

Subject: displaying values from <xsp:logic>
From: "Matt MacDougall" <matt@xxxxxxxxxxxxxxx>
Date: Fri, 27 Sep 2002 13:20:25 -0500
xsp logic
Hello,

I'm having a problem getting the results of a Java function wrapped in
<xsp:logic> tags to display on my page.

I have the following in an xsl file:

<xsl:template match="prevnext">
	<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>

  <prevresult>
    <xsp:expr>prevurl</xsp:expr>
  </prevresult>
--- ---
  <nextresult>
    <xsp:expr>nexturl</xsp:expr>
  </nextresult>
</xsl:template>


###################

there's also an earlier call in this xsl file to <xsl:apply-templates
select="prevnext"/> inside my results template.  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 ...> but I haven't had any
luck.  Does anyone catch any glaring errors here?

Thanks much,

-Matt


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.