• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I pass a value from javascript in a jsp to XSL

 
Rianth Thomas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic