• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic