Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What are scripting variables

Status
Not open for further replies.

pigsie

Programmer
Dec 19, 2000
307
GB
What are scripting variables?
 
I need to get javascript variables into my jsp logic so I can manipulate them.

<script>
var id = &quot;test&quot;;
</script>

<%

EncryptBean rsae = new EncryptBean();

// The javascript variable is ???????
byte[] cip = rsae.setMessage(???????);


%>

I lmow this is probably simplistic for most of you but I am struggling with it.

I tried to use a session variable but it seems that javascript session and jsp session variables don't know of each other. Unless anyone has that answer as well.

Thanks - before hand
 
Hi

2 points first you will probally get more replies if you post your message as a new thread rather than under someone elses.

second. JSP is server side so its all processed before the javascript you can send permanent values to javascript once when the page first loads. The jsp above is processed before the script tags regardless of the order in the code!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top