Pradip Shenolkar
asked on
execute javascript function from jstl <c:if>
javascript function is not executing;
getDimentions() is in external javascript file and it is included in jsp file <head></head> tag.
Here is jsp code:
Here is javascript code :
getDimentions() is in external javascript file and it is included in jsp file <head></head> tag.
Here is jsp code:
<div>
<c:if test='${not empty dimValues}'>
<script type="text/javascript">
getDimensions('<%=cubeValue%>');
</script>
</c:if>
</div>
Here is javascript code :
function getDimensions(dim1)
{
document.write(dim1);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER
I solved the problem.