Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 26th, 2005, 11:08 PM
Registered User
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to assign javascript to Java?

we can assign java variable value to the javascript variable in HTML <head> tag the as follows:

<script language="JavaScript">
    var jsVar = '<%=javaVarVal%>'

Is there any way to assign javascript variable value to java variable.


Old August 8th, 2005, 03:05 PM
Registered User
Join Date: Aug 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

No, that is not possible. Java is executed on the server, before any (client side) Javascript will take place. Server side Javascript might be a different story, but I guess that's not the Javascript you're talking about.

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you assign php to a row value in javascript RJ2001 Javascript How-To 0 August 13th, 2007 04:32 PM
How to assign xsl param with java script varaible Sanjay.Verma XSLT 1 November 21st, 2006 04:34 AM
assign javascript variable to asp variable manjunath_c_k Classic ASP Basics 1 September 14th, 2006 07:35 AM
How To Assign Value To Session Using Javascript janice.koay Classic ASP Professional 1 May 9th, 2006 12:59 AM
How to assign javascript value to java? salahu JSP Basics 1 June 27th, 2005 03:34 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.