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>

Comments

Popular posts from this blog

What are EAR, JAR and WAR files in J2EE?

ATG Issue - ConcurrentUpdateException - on BCC Deployment

How the competition helps to reduce the price of TEA?