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

Re: passing parameters between pages

Subject: Re: passing parameters between pages
From: Oleg Konovalov <olegkon@xxxxxxxxx>
Date: Wed, 30 Nov 2005 12:20:55 -0500
window.location parameters
David (and others),

You are right, by "XSL page" I meant web (XHTML) pages generated from XSL
by xsl->html transormer&serializer.

Yes, "a matter of scripting in HTML page".
I am deliberately trying to keep Cocoon out of discussion,
because it turns off many people on that list (honestly don't know why).

So far I've written a little JavaScript function returning an array
(declared within function).
When I pass that array (values of checked checkboxes) from page1 to
the next page:
<xsl:attribute name='onclick'>
  <xsl:text>window.location.href="page2?id="+  getCheckedValues(v1,
false) .... ";</xsl:text>
</xsl:attribute>
where v1 is my set of checkboxes, id - hidden input.
I can see the comma separated values in the URL (IE's Address),
but when I try to do in action class (Java):
String [] ids = request.getParameterValues("id");
getting NULL array.
I do have id declared on page2:
<xsl:param name='id'/>
Should I have it as <xsl:param name='id'>%</xsl/param>  ?
(what is that '%' ?)

Am I doing something wrong ?
How do I pass an array between Javascript->Java (or request params-> java) ?
Or need to declare that Javascript array outside of the function?

Thank you in advance,
Oleg.

On 11/29/05, David Carlisle <davidc@xxxxxxxxx> wrote:
>
> > I am not asking about Cocoon, but how to pass parameters
> > between 2 XSL pages.
>
> What do you mean by an "XSL page" (It's not a term I've ever seen used).
> Whether you are using XSL on the server, or on the client, essentially
> it is just writing html pages that are rendered on the client, so how,
> or if, you can pass information from one page to another is purely a
> matter of scripting in the html page and whatever features are available
> on the server that you are using. The fact that the HTML is being
> written by XSL probably doesn't really come in to it very much.
>
> David
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________

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.