| Author |
How can I pass a value from javascript in a jsp to XSL
|
Rianth Thomas
Greenhorn
Joined: Apr 21, 2004
Posts: 1
|
|
HI, Please help.I need to know how I can pass a valuefrom javascript in a jsp to a xsl called a.xsl. My problem is I have the value of select's options as a value in the javascript and I want to pass that whole value for example I have the value in the javascript as given below in a variable. <option value="url1">option1</option> <option value="url2">option2</option> <option value="url3">option3</option> <option value="url4">option4</option> I want to pass the whole value to the a.xsl's select, option as below , I have no options now for the select in the xsl. <select id="id1"> <option value="url1">option1</option> </select> thanks in Advance, Please help. Rianth.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
Is your problem that you don't know how to pass the user's selection from the browser to the server, or that you don't know how to pass parameters to an XSL stylesheet? If it's the latter, then this might help. If it's the former, that's really a JavaScript question and should be asked in the HTML/JavaScript forum.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
 |
|
|
subject: How can I pass a value from javascript in a jsp to XSL
|
|
|