Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

JSP WITH USING JAVA SCRIPTS

how can i put javascript elements in to the scriplets.

eg: if iam writing a javascript code in the head tag of html, so in that i want to print some values of script variables,using out.println statement.

can it possible to print the value of script variables.


Comments

  • Chanders2002Chanders2002 Member Posts: 7
    No if you mean that you want the values of the JavaScript variable to be assigned to the JSP variable. The reason for the same being JSP is the Server side script and JavaScript is the Cient Side Script (Unless u are using Live Connect a Server suporting a Server Side JavaScript).

    Reverse is true to assign a JSP value to the JavaSript Variable.

    Another way of achieving the same is to hold the values in the hidden field or drop a cookie and call the dynamic submit function using the JavaScript and read the value in the JSP variable.

    Chander
    : how can i put javascript elements in to the scriplets.
    :
    : eg: if iam writing a javascript code in the head tag of html, so in that i want to print some values of script variables,using out.println statement.
    :
    : can it possible to print the value of script variables.
    :
    :
    :

Sign In or Register to comment.