How to assign DSP value to Javascript variable

<dsp:getvalueof bean="/its/blog/RegisterDroplet" var="welcome"></dsp:getvalueof>
Your details: <br>
You name: <c:out value="${welcome.userName}"/><br>
Your email ID: <c:out value="${welcome.emailId}"/><br>
<script>
var s='<c:out value="${welcome.emailId}"/>';
alert(s);
</script>

Post a Comment

Popular posts from this blog

[Solved] Hive installation error: java.net.URISyntaxException: Relative path in absolute URI

Install Android SDK in centOs

Installing arules package (Association Rules) in R