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

Getting parameters from a JSP

Subject: Getting parameters from a JSP
From: "Jorge A. Salido" <jorgesalido@xxxxxxxxx>
Date: 07 Oct 2002 13:09:22 -0600
jsp get parameters
Hi,

I've been looking for information or sample code on how can I get
parameters from a JSP file to an XSLT (if that is even possible...). So
far what I've been thinking is that perhaps it would be easier to
include those parameters in an xml file and then process it with a given
xslt, but I'm guessing that's not the most practical way to do it.

What I'm trying to do is sort a simple table by a given column, getting
the column number from a JSP as a parameter (ej. foo.jsp?sort=2) so I
can use it on the xsl as 

<xsl:variable name="sortOrder" select="(missing here!?)">
<xsl:sort select="column[$sortOrder]">

...and then I also want to limit the number of rows the page displays,
showing for example n rows from a given start row, or show all rows
between a start row and end row. My problem is still to get those
parameters while interacting with the user.

I've been able to do these stuff on a static basis, and call java
functions so far, but not within the jsp (or specifically the
getParameter() function). Any help/pointers on how to mix the JSP and
the XSLT?

Jorge


 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.