What is the difference between <s: property ..> and $ {param}
In struts, I notice that there are two different ways to access variables. I'm curious what the difference is and when to use each one correctly. For example, suppose we set a variable height like this:
<s:set var="height">300px</s:set> Now I can use it in two ways:
<div style="height: ${height}"> </div> .. or..
<div style="height: <s:property value='#height' />"> </div> What is the difference and which is better to use?
+4
2 answers