Updating the DOM with a JSTL import?

I want to update the content of my page dynamically and I understand how to use javascript and the DOM to access and and change the content that way. My question is can I change the DOM by using a JSTL import statement to specify the content?

something like:

<html>

<script>

functionAlpha(){

document.getElementById('content').innerHTML = <c:import url=\"alpha.jsp\" />

}

functionBeta(){

document.getElementById('content').innerHTML = <c:import url=\"beta.jsp\" />

}

</script>

<body>

<!-- not the best practice here but will workforthis example -->

<a href="javascript:contentAlpha()">Alpah</a>

<a href="javascript:contentBeta()">Beta</a>

<div id="content">

</div>

</body>

</html>

I have tried the crux of the above and it does not work for me. Please let me know if this should work and i have the syntax wrong or if there are alternative methods to achieve what i am trying to accomplish. any help is appreciated. thanks.

[1557 byte] By [b12sa] at [2007-11-27 5:01:12]
# 1
First start to try to understand the big difference between clientside languages and serverside languages. Then you can answer the question yourself.
BalusCa at 2007-7-12 10:18:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
i have a good understanding of client side vs server side. thank you. anyone else?
b12sa at 2007-7-12 10:18:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Likely not. The key point is that you cannot execute serverside languages using clientside languages without sending the information from the client to the server.Consider AJAX for what you're trying to achieve (updating content asynchronously).
BalusCa at 2007-7-12 10:18:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...