Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
jsp variable in java script
Name: mythri Date: May 5, 2004 at 04:35:06 Pacific OS: windows xp CPU/Ram: p 3 128 ram
Comment:
Hi, iam trying to use the variable declared in jsp tags in the scipt. both exists in the same jsp page. I need to access the jsp variable in script function,where that jsp variable contain the data accessed from the database. its urgent plz
Dont forget the % sign on the closing bracket as well..
0
Response Number 3
Name: mythri Date: May 5, 2004 at 22:10:16 Pacific
Reply:
Hi, I tried with 2 stmts wt u mentioned above but it is not working. nothing is being displayed on the browser.but in the status bar it is giving like "done with some errors on the page"
iam giving the code .
<%String name="something";%> <script> window.alert("hello"); var x="<%=name%>"; window.alert("hai"+x); </script>
iam able to get the first alert box but not the second alert box.
Summary: hi, can anyone tell me what code i would need to use so that i can reset a variable in java by clicking on a link?everytime i try it just continues to use the original variable... ive tryied a couple ...
Summary: There are several ways to embed shell variables in awk scripts and to pass shell variables to awk scripts. Take a look at this link: http://www.tek-tips.com/faqs.cfm?fi... ...
Summary: Hi, iam getting error in the below code plz check. I am trying to access the jsp variables in script which exists in the same page. the code is as follows <%String name="something";%> <script> ...