[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: passing parameters between pages
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 > ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|