cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Javascript values to servlets

Former Member
0 Kudos

Dear gurus,

How can I set the values of a servlet with javascript ?

Thanks in advance,

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

Can you please elaborate more what you are trying to do?  Appending &Name=Value to the end of the servlet call will send the information to the servlet for processing so if your javascript was grabbing a tagname from the user and requesting data it could look like:

/XMII/Illuminator?Server=Simulator&Mode=Current&TagName.1=XXXX

Where you simply append the string values accordingly.

If you are using xslt for display purposes, then having the xsl:param in the top seciont of the stylesheet allows the value to be used in the xslt.  You can see an example in /XMII/Stylesheets/IllumRowsetHTML.xsl and the end result from something like:

/XMII/Illuminator?Server=Simulator&Mode=Current&TagName.1=XXXX&HeaderText=Hello World

**The Server/Mode/TagName.1 in the URL's above is just a shortcut to not use a query template, which would typically be the case.

Answers (0)