Firstly I am new to JavaScript.
I have a
JSP page.
There is a chunk of JSP code that creates a
String variable.
On this page there is also a chunk of code that I was given with encode and decode functions. These functions take a pair of strings and encrypt them. 1 Of the stings that I need to use in this function is created via JSP code.
So I need to get this JSP String variable to work in the encode function.
I know how to display JSP strings in HTML - but I dont know how to use them in JavaScript. Is it possible?
Also with the result of the encode function that is in JavaScript - I need to send the result in a form on that page.
My second question is how do you access JavaScript variables in HTML so that I can send it via a hidden value in a form?