Struts2 tags in divs appear empty
I have a s:checkbox inside a html div. When the code is run, the checkbox is outside (both) the div and the divs seem to be empty and nonexistant. Why is this occuring and how can I fix it? When I place random text inside either div, the div contains it. I set the background color to red so I can detect the div. <div id="outer"> <div id="inner"> <s:checkbox name="chBx" id"chBx" fieldValue="false" value="true" label="Check This" /> </div> </div> Andrea Ligios Like described in this answer (that you should consider upvoting too), Struts2 generates (or not) a certain kind of HTML when rendering