Originally posted by James Clark:
It demonstrates the key concept of attribute value assignment via JSP scriplet. This is how developers can assign dynamic values to the HTML attributes within the page.
While the example does clearly show how a scriptlet expression can be used to embed a dynamic value in the HTML markup, it doesn't address the OP's question of knowing what value to use.
Again, the server knows nothing of the HTML elements that will be rendered by whatever markup it will send to the client.
You can define a
frame bean and give it a height property with a fixed value, but that doesn't bear any relationship to the actual iframe that has yet to be created on the client.
P.S. Scriptlet expressions themselves are very passé in JSP 2 where the EL should be preferred.
[ May 02, 2008: Message edited by: Bear Bibeault ]