Facebook Twitter LinkedIn RSS
 
 
Home » Posts tagged "Variable"

Posts Tagged ‘Variable’:


How to pass a variable from JSP to JavaScript

Now I am going to explain how we can pass a JSP variable to JavaScript code. For example I have the JSP variable <%= jspParameter %>, which I want to be accessed by my JavaScript code. In the Javascript code I will define a new js variable and I will pass the JSP variable: var

(More)…

How to pass a variable from a JSP file to another

Here I am explaining the simple procedure of passing variables from a JSP page to another. One easy way is to pass them through a form as hidden variables. For example, I have the variable with name “parameter1″ and value and I want to pass it from page1.jsp to page2.jsp. On the form of page1.jsp

(More)…